Um quite new to rails and um getting an error when run the command
rails s
it says
Could not find rake-0.9.2.2 in any of the sources
Run bundle install
to install missing gems.
when I run bundle install nothing happened
my gem list has rake 0.9.2.2 what can go wrong? my ruby version is 1.9.3 Thank you in advance
Try using rvm and go back to ruby 1.8.7 instead of 1.9.2. This fixed it for me. Don't forget to install rails again (sudo gem install rails while already on 1.8.7) if you have only installed rails for 1.9.3.]
gemfile.lock
=> rm Gemfile.lockgemfile
bundle install
gem install rake --version=10.0.4
When you use command
gem list
, you will get a list of gem installed on your machine.Just see the console which gem is compatible with your application. It is already mentioned in the error log message.
Use
Keep the suitable one and remove the version who is creating trouble. And then run
rails s
orbundle exec rails s