Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when installing Phusion Passenger "Could not find passenger (>= 0) amongst [] (Gem::LoadError)"

I'm following these directions to install Rails 3 on my WHM/cPanel VPS. The only change I'm making is to use Ruby 1.9.3 and Rails 3.2.3

However when I get to the command to run "passenger-install-apache2-module" I'm having issues.

First, due to PATH issues I need to go into the correct directory to run the command.

More importantly, once I execute the command I get the error "Could not find passenger (>= 0) amongst [] (Gem::LoadError)" (Full error below).

The square brackets are empty, so I verified that the gems were there via "gem list --local" and passenger is listed.

System Specs:

CENTOS 5.8, WHM 11.32, VPS with root access

Full error:

/home/tekruby/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find passenger (>= 0) amongst [] (Gem::LoadError)
    from /home/tekruby/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
    from /home/tekruby/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
    from /home/tekruby/ruby/gems/bin/passenger-install-apache2-module:22:in `<main>'
like image 772
Thanos Avatar asked May 02 '12 16:05

Thanos


2 Answers

You are doing it inside a rails app path, try:

cd ..

and then

passenger-install-apache2-module

I guess it works

like image 179
Mauro Dias Avatar answered Oct 21 '22 20:10

Mauro Dias


I just went through this, you can try:

rvmsudo passenger-install-apache2-module

Hope this helps you out.

like image 24
StrongTSQ Avatar answered Oct 21 '22 19:10

StrongTSQ