绑定jquery rails失败并出现错误?

绑定jquery rails失败并出现错误?,jquery,ruby-on-rails,ruby,macos,gem,Jquery,Ruby On Rails,Ruby,Macos,Gem,我试图在我的GEM文件中包含jquery rails,但收到以下错误: ArgumentError: invalid byte sequence in US-ASCII An error occured while installing jquery-rails (1.0.19), and Bundler cannot continue. Make sure that `gem install jquery-rails -v '1.0.19'` succeeds before bundling.

我试图在我的GEM文件中包含jquery rails,但收到以下错误:

ArgumentError: invalid byte sequence in US-ASCII
An error occured while installing jquery-rails (1.0.19), and Bundler cannot continue.
Make sure that `gem install jquery-rails -v '1.0.19'` succeeds before bundling.
gem安装jquery rails-v'1.0.19'
也会产生错误。
关于如何解决这个问题有什么想法吗?

我查看了jquery rails的bug报告,发现它与您的类似。您应该尝试他们的几种解决方案:

如果您在Linux或OSX上运行:

export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
bundle install

如果这样做有效,那么您需要修改您的配置文件,以便在每次运行bundler时设置这些值。让我知道这是否对您有效。

gem安装jquery rails-v'1.0.19'失败时产生了什么消息?还有,您正在运行哪些版本的Ruby和rails?是的!成功了!如何在我的配置文件中将此值设置为默认值?将导出行添加到“~/.profile”中重新启动shell,并且每次启动shell时都应该运行它。测试一下,让我知道。我在配置文件中添加了export LANG=“en_US.UTF-8”export LC\u ALL=“en_US.UTF-8”,但它不会自动工作,每次启动新应用之前,我都需要编写此代码。