Reputation: 290
I'm brand new to rails and am trying to dive in to my first project on my Mac, but am running in to an issue when I run Rake -T inside my project's root dir:
Could not find rake-0.9.2.2 in any of the sources
Run 'bundle install' to install missing gems.
After I run 'bundle install' I get:
Your bundle is complete! It was installed into ./rake
But I still get the same error when I call Rake again. My gemfile lists rake as:
gem 'rake', '0.9.2.2'
If I run 'bundle list' I can see:
* rake (0.9.2.2)
I've looked at other posts on stackoverflow and google, but none of the solutions have worked for me. I'd also really appreciate any background on what's going on here, for instance, should rake be installed in to the project directory like this? I'm not sure what else I should include to help troubleshoot?
Thank you!
Upvotes: 1
Views: 6021
Reputation: 469
please check if rvm is configured correctly - read about .rvmrc and setup_and_load_paths.rb http://blog.ninjahideout.com/posts/the-path-to-better-rvm-and-passenger-integration, also check lines at your nginx(i suppose you use it, cause, i just had exactly same problem) configs passenger_root and passenger_ruby (this one should include smth like output of which ruby + @your_gem_set) good luck
Upvotes: 1
Reputation: 3716
Have you tried Gem install rake
?
Bundle will not install anything to your path I do not think but you may also get it working by bundle exec rake
. If that doesn't work, try bundle exec rake -v0.9.2.2.2
I don't fully understand how bundle works either as running Rails commands on my computer runs Rails 3.2.2 while the bundle runs Rails 3.1.1
Upvotes: 0
Reputation: 2179
Go to https://rvm.io instal rvm, rvm install 1.9.3, rvm use 1.9.3 --default then you can manage your gems through rvm It is the best solution to manage your gems.
Upvotes: 3