Hi When I run passenger-install-apache2-module I get:
Checking for required software...
- GNU C++ compiler... found at /opt/csw/gcc4/bin/g++
- Curl development headers with SSL support... not found
I followed this tutorial http://www.darkaslight.com/blog/entry/50-Installing-Phusion-Passenger-on-Solaris and I fixed all dependencies except Curl with SSL headers.
There is no need to do any of the tricks with CRLE as described in the link to darksaslight.com in the original question. In fact, I would try to remove any changes if you have done so. The build technique fixed the RUNPATH inside of the libraries so that it knows to look in the various /opt/csw/lib directories without any LD_LIBRARY_PATH or crle tweaks.
You will need the following OpenCSW packages in addition to the base ruby packages:
The libidn_dev is non-obvious since the installer script "helpfully" hides the output of the test compile commmands that it runs. I found it by reviewing the output of truss and discovered that there was a linker error due to the missing library.
You will need to run the following commands either as root or under sudo. I prefixed all of my commands with sudo.
Install the rack and passenger gems:
Then use this command to start compilation:
Once that gets going, you may see an error like this:
You can fix that by editing /opt/csw/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/platform_info/compiler.rb and cleaning out the "-D_XOPEN_SOURCE=500" from one of the flags statements. Like so:
This gets you to here:
To clear that up, edit /opt/csw/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/platform_info/compiler.rb again, and put a line like:
after "if RUBY_PLATFORM =~ /solaris/" . This is in the section as the above edit.
Also replace the line
with
Note the additional underscore at the end of ALLOCA_H