Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install passenger module

I am trying to configure the passenger and Nginx for rails application .

I am getting compilation error while execute the passenger command.

Ruby version : ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

Rails version Rails 4.2.6

Error message:-

# passenger-install-nginx-module
/usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #<Gem::Specification:0x7cab3c passenger-5.0.28> (NoMethodError)
        from /usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path'
        from /usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:64:in `require'
        from /usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.28/bin/passenger-install-nginx-module:33:in `<top (required)>'
        from /usr/local/rvm/gems/ruby-2.3.1/bin/passenger-install-nginx-module:23:in `load'
        from /usr/local/rvm/gems/ruby-2.3.1/bin/passenger-install-nginx-module:23:in `<main>'
        from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
        from /usr/local/rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'

could you please help me on this matter.

like image 956
Nataraj Avatar asked May 18 '16 05:05

Nataraj


People also ask

Why is my Phusion Passenger installation not working?

This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'PassengerRoot' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'PassengerRoot' directive, whichever is applicable. Thanks! Sorry, something went wrong. Thanks @vmcilwain and @dynelight for your feedback.

Why can't Apache passenger do what it wants?

Apache executes Passenger inside the Apache domain, so Passenger still can't do the things it wants. @dynelight 's issue turns out to be completely unrelated. He installed two versions of Passenger in such a way that they conflict with each other. Sorry, something went wrong.

Why can't I run passenger on a non-root process?

The permission problem was on his home directory. Passenger was installed inside the home directory, so any non-root processes that Passenger spawns couldn't access the Passenger directory.


2 Answers

If not resolved yet, you can try:

gem update --system

and then try to compile again.

like image 117
Andrea Zauli Avatar answered Oct 17 '22 10:10

Andrea Zauli


This works in my case:

Remove ruby and rvm - then Reinstall. Try again.

like image 1
dumP Avatar answered Oct 17 '22 10:10

dumP