Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundling jquery-rails fails with error?

I am trying to include jquery-rails in my Gemfile however I receive the following error:

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 install jquery-rails -v '1.0.19' produces an error as well. Any ideas on how to fix the problem?

like image 620
Alon Weissfeld Avatar asked Jan 17 '12 15:01

Alon Weissfeld


1 Answers

I've taken a look at the bug reports for jquery-rails and found this error that's similar to yours. You should try a few of their solutions:

If you are on Linux or OSX run:

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

If that works then you need to modify your profile so those values are set every time you run bundler. Let me know if this works for you.

like image 124
Devin M Avatar answered Oct 26 '22 12:10

Devin M