Nataraj
Nataraj

Reputation: 942

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.

Upvotes: 7

Views: 460

Answers (2)

Andrea Zauli
Andrea Zauli

Reputation: 21

If not resolved yet, you can try:

gem update --system

and then try to compile again.

Upvotes: 2

dumP
dumP

Reputation: 801

This works in my case:

Remove ruby and rvm - then Reinstall. Try again.

Upvotes: 1

Related Questions