Can't compile passenger-install-apache2-module with passenger 4.rc4 in Ruby 2.0

  • Posted March 13, 2013

I’ve installed Ruby 2.0 using rvm with apache2 in my Ubuntu 12.10 server, but I can’t compile the. I think the problem is related with the rake task. Iam using the rvmsudo command to compile.

Command failed with status (4): [g++ -Iext -Iext/common -Iext/libev -D_REE…] /home/bonsai/.rvm/gems/ruby-2.0.0-p0@rails32/gems/passenger-4.0.0.rc4/build/cplusplus_support.rb:31:in compile_cxx' /home/bonsai/.rvm/gems/ruby-2.0.0-p0@rails32/gems/passenger-4.0.0.rc4/lib/phusion_passenger/common_library.rb:133:in block (2 levels) in define_category_tasks’ /home/bonsai/.rvm/gems/ruby-2.0.0-p0@rails32/bin/ruby_noexec_wrapper:14:in eval' /home/bonsai/.rvm/gems/ruby-2.0.0-p0@rails32/bin/ruby_noexec_wrapper:14:in <main>’ Tasks: TOP => apache2 => agents/PassengerHelperAgent => libout/common/libpassenger_common/ApplicationPool2/Implementation.o

The same thing for nginx module.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


This error has occurred before on a previous version of Passenger you can see a breakdown of it here: <br>!topic/phusion-passenger/RhKXRiqjBeM <br> <br>Looks like the code needed to be patched based on how certain wrappers were being discovered, could be the same issue related to the latest version of passenger. <br> <br>You may want to check with github to see if anyone else has reported this issue and if a fix is in the works.