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

1

5

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 !

Presidium answered 18/4, 2013 at 8:33 Comment(2)
Do you use rvm or rbenv or something?Olli
Have a look at rvm.io/integration/passenger and google for passenger and rvm, this is a path / environment issue. There are also plenty of questions about this exact topic.Olli
H
8

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

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)

Huberman answered 13/6, 2013 at 13:49 Comment(1)
Wow, I can't believe I overlooked that. Thanks for this!Underline

© 2022 - 2024 — McMap. All rights reserved.