I am installing Phusion Passenger on Solaris 10 with IBM HTTP Sevrer.
Here is the sequence I have followed to install it.
1. Installed Ruby
# pkgadd -d ruby-1.8.7p72-sol10-sparc-local
# pkginfo -i |grep -i ruby
application SMCruby ruby
2. Installed RubyGems
file : rubygems-1.3.5.tgz
# cd rubygems-1.3.5
# ruby setup.rb
RubyGems 1.3.5 installed
# gem -v
1.3.5
root@esol041 # gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [sparc-solaris2.10]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- sparc-solaris-2.10
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.8
- /.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
3. Installed all the required gems as given in the below list.
# gem list
*** LOCAL GEMS ***
actionmailer (2.3.4)
actionpack (2.3.4)
activerecord (2.3.4)
activeresource (2.3.4)
activesupport (2.3.4)
fastthread (1.0.7)
passenger (2.2.7)
rails (2.3.4)
rake (0.8.7)
4. In order to configure passenger with IBM HTTP Server, set following
env variables:
# export APXS2=/opt/IBM/WebSphere/HTTPServer/bin/apxs
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/IBM/WebSphere/
HTTPServer/lib
Problem : When configuring "passenger-install-apache2-module", getting
series of c++ library errors and I am clueless what could be the
issue. I am not sure if I am doing anything wrong here.
If anyone else has seen similar issue or configured it with IBM HTTP
Server, pls let me know how you could able to fix these errors. Any
other suggestions are welcome.
# passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v2.2.7.
This installer will guide you through the entire installation process.
It shouldn't take more than 3 minutes in total.
Here's what you can expect from the installation process:
1. The Apache 2 module will be installed for you.
2. You'll learn how to configure Apache.
3. You'll learn how to deploy a Ruby on Rails application.
Don't worry if anything goes wrong. This installer will advise you on
how to solve any problems.
Press Enter to continue, or Ctrl-C to abort.
--------------------------------------------
Checking for required software...
* GNU C++ compiler... found at /usr/local/bin/g++
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at /usr/local/bin/rake
* Apache 2... found at /opt/IBM/WebSphere/HTTPServer/bin/httpd
* Apache 2 development headers... found at /opt/IBM/WebSphere/
HTTPServer/bin/apxs
* Apache Portable Runtime (APR) development headers... found at /opt/
IBM/WebSphere/HTTPServer/bin/apr-config
* Apache Portable Runtime Utility (APU) development headers... found
at /opt/IBM/WebSphere/HTTPServer/bin/apu-config
-------------------------------------------
Compiling and installing Apache 2 module...
cd /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.7
/usr/local/bin/ruby -S /usr/local/bin/rake clean apache2
# /usr/local/bin/ruby -S /usr/local/bin/rake clean apache2
(in /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.7)
rm -rf ext/apache2/libboost_oxt.a ext/apache2/libboost_oxt
rm -rf ext/apache2/libpassenger_common.a ext/apache2/
ApplicationPoolServerExecutable ext/apache2/libpassenger_common
rm -rf ext/apache2/Configuration.o ext/apache2/Bucket.o ext/apache2/
Hooks.o ext/apache2/mod_passenger.o ext/apache2/mod_passenger.so
rm -rf ext/nginx/libboost_oxt.a ext/nginx/libboost_oxt
rm -rf ext/nginx/libpassenger_common.a ext/nginx/libpassenger_common
rm -rf ext/nginx/HelperServer
rm -rf test/libboost_oxt.a test/libboost_oxt
rm -rf test/libpassenger_common.a test/ApplicationPoolServerExecutable
test/libpassenger_common
rm -rf test/oxt/oxt_test_main test/oxt/*.o test/CxxTests test/*.o
rm -r pkg
rm -f ext/phusion_passenger/Makefile
mkdir -p ext/apache2/libpassenger_common
g++ -Iext -Iext/common -fPIC -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -
D_REENTRANT -I/opt/IBM/WebSphere/HTTPServer/include -I/opt/IBM/
WebSphere/HTTPServer/include -I/opt/IBM/WebSphere/HTTPServer/include -
D_REENTRANT -I/usr/local/include -D_XOPEN_SOURCE=500 -D_XPG4_2 -
D__EXTENSIONS__ -D__SOLARIS__ -D_FILE_OFFSET_BITS=64 -
DBOOST_HAS_STDINT_H -mcpu=ultrasparc -Wall -g -DPASSENGER_DEBUG -
DBOOST_DISABLE_ASSERTS -o ext/apache2/libpassenger_common/Utils.o -c
ext/common/Utils.cpp
In file included from /usr/include/sys/wait.h:24,
from /usr/include/stdlib.h:22,
from /usr/local/lib/gcc/sparc-sun-
solaris2.9/3.4.6/../../../../include/c++/3.4.6/cstdlib:52,
from /usr/local/lib/gcc/sparc-sun-
solaris2.9/3.4.6/../../../../include/c++/3.4.6/bits/stl_algobase.h:67,
from /usr/local/lib/gcc/sparc-sun-
solaris2.9/3.4.6/../../../../include/c++/3.4.6/memory:54,
from ext/boost/shared_ptr.hpp:23,
from ext/boost/thread/pthread/tss.hpp:10,
from ext/boost/thread/tss.hpp:13,
from ext/oxt/system_calls.hpp:28,
from ext/common/Utils.cpp:26:
/usr/include/sys/siginfo.h:259: error: `ctid_t' does not name a type
/usr/include/sys/siginfo.h:260: error: `zoneid_t' does not name a type
/usr/include/sys/siginfo.h:390: error: `ctid_t' does not name a type
/usr/include/sys/siginfo.h:391: error: `zoneid_t' does not name a type
In file included from /usr/local/lib/gcc/sparc-sun-
solaris2.9/3.4.6/../../../../include/c++/3.4.6/sparc-sun-solaris2.9/
bits/gthr-default.h:43,
from /usr/local/lib/gcc/sparc-sun-
solaris2.9/3.4.6/../../../../include/c++/3.4.6/sparc-sun-solaris2.9/
bits/gthr.h:96,
from /usr/local/lib/gcc/sparc-sun-
solaris2.9/3.4.6/../../../../include/c++/3.4.6/sparc-sun-solaris2.9/
bits/c++io.h:37,
from /usr/local/lib/gcc/sparc-sun-
solaris2.9/3.4.6/../../../../include/c++/3.4.6/iosfwd:47,
from /usr/local/lib/gcc/sparc-sun-
solaris2.9/3.4.6/../../../../include/c++/3.4.6/bits/stl_algobase.h:70,
from /usr/local/lib/gcc/sparc-sun-
solaris2.9/3.4.6/../../../../include/c++/3.4.6/memory:54,
from ext/boost/shared_ptr.hpp:23,
from ext/boost/thread/pthread/tss.hpp:10,
from ext/boost/thread/tss.hpp:13,
from ext/oxt/system_calls.hpp:28,
from ext/common/Utils.cpp:26:
/usr/include/pthread.h:299: error: `pthread_spinlock_t' was not
declared in this scope
/usr/include/pthread.h:299: error: expected primary-expression before
',' token
/usr/include/pthread.h:299: error: expected primary-expression before
"int"
/usr/include/pthread.h:299: error: initializer expression list treated
as compound expression
/usr/include/pthread.h:300: error: `pthread_spinlock_t' was not
declared in this scope
/usr/include/pthread.h:300: error: expected primary-expression before
')' token
/usr/include/pthread.h:301: error: `pthread_spinlock_t' was not
declared in this scope
/usr/include/pthread.h:301: error: expected primary-expression before
')' token
/usr/include/pthread.h:302: error: `pthread_spinlock_t' was not
declared in this scope
/usr/include/pthread.h:302: error: expected primary-expression before
')' token
/usr/include/pthread.h:303: error: `pthread_spinlock_t' was not
declared in this scope
/usr/include/pthread.h:303: error: expected primary-expression before
')' token
/usr/include/pthread.h:304: error: `pthread_barrierattr_t' was not
declared in this scope
/usr/include/pthread.h:304: error: expected primary-expression before
')' token
/usr/include/pthread.h:305: error: `pthread_barrierattr_t' was not
declared in this scope
/usr/include/pthread.h:305: error: expected primary-expression before
')' token
/usr/include/pthread.h:306: error: `pthread_barrierattr_t' was not
declared in this scope
/usr/include/pthread.h:306: error: expected primary-expression before
',' token
/usr/include/pthread.h:306: error: expected primary-expression before
"int"
/usr/include/pthread.h:306: error: initializer expression list treated
as compound expression
/usr/include/pthread.h:308: error: expected `,' or `...' before '*'
token
/usr/include/pthread.h:309: error: `pthread_barrier_t' was not
declared in this scope
/usr/include/pthread.h:309: error: expected primary-expression before
',' token
/usr/include/pthread.h:310: error: expected primary-expression before
"const"
/usr/include/pthread.h:310: error: expected primary-expression before
')' token
/usr/include/pthread.h:310: error: initializer expression list treated
as compound expression
/usr/include/pthread.h:311: error: `pthread_barrier_t' was not
declared in this scope
/usr/include/pthread.h:311: error: expected primary-expression before
')' token
/usr/include/pthread.h:312: error: `pthread_barrier_t' was not
declared in this scope
/usr/include/pthread.h:312: error: expected primary-expression before
')' token
rake aborted!
Command failed with status (1): [g++ -Iext -Iext/common -fPIC -
DSOLARIS2=8 ...]
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.7/Rakefile:172:in
`define_common_library_task'
(See full trace by running task with --trace)
--------------------------------------------