简体   繁体   中英

Could not find gem 'jquery-rails (>= 0) ruby' in any of the gem sources listed in your Gemfile

I've installed ruby on rails using "gem install rails" and got the message that rails has been successfully installed. When I try to check that it has been installed successfully using "rails -v" I'm getting this error:

Could not find gem 'jquery-rails (>= 0) ruby' in any of the gem sources listed in your Gemfile.

Any ideas...?

I got this same error because I had installed ruby and rails via rvm, but without the libssl-dev package on ubunut 11.10. To remedy, I did the following:

sudo apt-get install libssl-dev
rvm remove 1.9.3 #or whatever your version of ruby is
rvm cleanup all
rvm install 1.9.3

cd to project directory bundle install

Now I don't seem to be getting the error anymore

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM