Installing Passenger passenger-install-apache2-module: command not found
If you are installing/upgrading Phusion Passenger (a.k.a mod_rails/mod_rack) and facing the following error at the second step when you run passenger-install-apache2-module
sudo: passenger-install-apache2-module: command not found
That means gems bin directly is no in the PATH. Either you can add this to the PATH or You can simply run the command with the full path to passenger-install-apache2-module.
In our case, we use enterprise ruby and the command looks like as below:
sudo /opt/ruby-enterprise-1.8.7-2010.01/bin/passenger-install-apache2-module
You can find the bin path to the gems by issuing the following command – note the bold blue text:
server5 ~: gem environment
RubyGems Environment:
– RUBYGEMS VERSION: 1.3.5
– RUBY VERSION: 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux]
– INSTALLATION DIRECTORY: /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8
– RUBY EXECUTABLE: /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby
– EXECUTABLE DIRECTORY: /opt/ruby-enterprise-1.8.7-2010.01/bin
– RUBYGEMS PLATFORMS:
– ruby
– x86_64-linux
– GEM PATHS:
– /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8
– /home/username/.gem/ruby/1.8
– GEM CONFIGURATION:
– :update_sources => true
– :verbose => true
– :benchmark => false
– :backtrace => false
– :bulk_threshold => 1000
– :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"]
– REMOTE SOURCES:
– http://gems.rubyforge.org/
– http://gems.github.com
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.



Comments
No comments yet.
Leave a comment