Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passenger: Could not find rake-10.0.4 in any of the sources (Bundler::GemNotFound)

I have a rails app running on debian with apache2 + passenger but I get this message from passenger:

Error message:
    Could not find rake-10.0.4 in any of the sources (Bundler::GemNotFound)

The strange thing is that rake-10.0.4 seems to be already installed:

> bundle show
Gems included by the bundle:
  * ...
  * rake (10.0.4)
  * ...

Do someone have any idea where does that come from ? Thanks !

like image 847
n0n0bstan Avatar asked Feb 16 '23 18:02

n0n0bstan


1 Answers

I think I've been struggling with this problem - I just posted my solution at:

  • https://stackoverflow.com/a/17088480/1578861

It sounds like your passenger configuration is pointing to a different version of ruby to the one you are using to run your bundler

Check which ruby version your rvm is using:

    $ rvm env --path

Find your passenger.conf and update PassengerRuby - you can do this using a config utility provided by passenger

   passenger-config --ruby-command

Make sure use use the fully qualified path before passenger-config (to avoid my frustrating late night mistake)

like image 128
nostopbutton Avatar answered Apr 06 '23 23:04

nostopbutton