I ran Passenger 3.0.13 on my CentOS 5.8 and got a issue when I tried to upgrade to Passenger 3.9.1 beta. The error is listed below:
root@morpheus [~]# passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v3.9.1.beta.
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/bin/g++
* Curl development headers with SSL support... found
* OpenSSL development headers... found
* Zlib development headers... found
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at /usr/local/rvm/wrappers/ruby-1.9.3-p327/rake
* rack... found
* Apache 2... found at /usr/local/apache/bin/httpd
* Apache 2 development headers... found at /usr/bin/apxs
* Apache Portable Runtime (APR) development headers... found at /usr/local/apache/bin/apr-1-config
* Apache Portable Runtime Utility (APU) development headers... found at /usr/local/apache/bin/apu-1-config
--------------------------------------------
Compiling and installing Apache 2 module...
cd /usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta
/usr/local/rvm/wrappers/ruby-1.9.3-p327/rake apache2:clean apache2 RELEASE=yes
# /usr/local/rvm/wrappers/ruby-1.9.3-p327/rake apache2:clean apache2 RELEASE=yes
rm -rf libout/common/libboost_oxt.a libout/common/libboost_oxt
rm -f libout/common/libpassenger_common/Logging.o libout/common/libpassenger_common/Utils/SystemTime.o libout/common/libpassenger_common/Utils/StrIntUtils.o libout/common/libpassenger_common/Utils/IOUtils.o libout/common/libpassenger_common/Utils.o
rm -f libout/common/libpassenger_common/Utils/Base64.o libout/common/libpassenger_common/Utils/CachedFileStat.o libout/common/libpassenger_common/ApplicationPool2/Implementation.o libout/common/libpassenger_common/AccountsDatabase.o libout/common/libpassenger_common/AgentsStarter.o libout/common/libpassenger_common/AgentsBase.o libout/common/libpassenger_common/Utils/MD5.o libout/common/libpassenger_common/Utils/fib.o libout/common/libpassenger_common/Utils/jsoncpp.o
rm -f libout/common/libpassenger_common/agents/LoggingAgent/FilterSupport.o
rm -rf libout/common/libpassenger_common
rm -rf agents/PassengerWatchdog agents/PassengerWatchdog.o agents/PassengerWatchdog.dSYM
rm -rf agents/PassengerHelperAgent agents/PassengerHelperAgent.o agents/PassengerHelperAgent.dSYM
rm -rf agents/PassengerLoggingAgent agents/PassengerLoggingAgent.o agents/PassengerLoggingAgent.dSYM
rm -rf agents/SpawnPreparer agents/SpawnPreparer.o agents/SpawnPreparer.dSYM
rm -rf agents/EnvPrinter agents/EnvPrinter.o agents/EnvPrinter.dSYM
rm -rf agents
rm -rf libout/apache2/module_libboost_oxt.a libout/apache2/module_libboost_oxt
rm -f libout/apache2/module_libpassenger_common/Logging.o libout/apache2/module_libpassenger_common/Utils/SystemTime.o libout/apache2/module_libpassenger_common/Utils/StrIntUtils.o libout/apache2/module_libpassenger_common/Utils/IOUtils.o libout/apache2/module_libpassenger_common/Utils.o
rm -f libout/apache2/module_libpassenger_common/Utils/Base64.o libout/apache2/module_libpassenger_common/Utils/CachedFileStat.o libout/apache2/module_libpassenger_common/ApplicationPool2/Implementation.o libout/apache2/module_libpassenger_common/AccountsDatabase.o libout/apache2/module_libpassenger_common/AgentsStarter.o libout/apache2/module_libpassenger_common/AgentsBase.o libout/apache2/module_libpassenger_common/Utils/MD5.o libout/apache2/module_libpassenger_common/Utils/fib.o libout/apache2/module_libpassenger_common/Utils/jsoncpp.o
rm -f libout/apache2/module_libpassenger_common/agents/LoggingAgent/FilterSupport.o
rm -rf libout/apache2/module_libpassenger_common
rm -rf libout/apache2/Configuration.o libout/apache2/Bucket.o libout/apache2/Hooks.o libout/apache2/mod_passenger.o libout/apache2/mod_passenger.so
mkdir -p libout/apache2/module_libpassenger_common
g++ -Iext -Iext/common -Iext/libev -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache/include -I/usr/local/apache/include -m64 -fPIC -DPIC -I/usr/local/apache/include -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o libout/apache2/module_libpassenger_common/Logging.o -c ext/common/Logging.cpp
mkdir -p libout/apache2/module_libpassenger_common/Utils
g++ -Iext -Iext/common -Iext/libev -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache/include -I/usr/local/apache/include -m64 -fPIC -DPIC -I/usr/local/apache/include -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o libout/apache2/module_libpassenger_common/Utils/SystemTime.o -c ext/common/Utils/SystemTime.cpp
g++ -Iext -Iext/common -Iext/libev -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache/include -I/usr/local/apache/include -m64 -fPIC -DPIC -I/usr/local/apache/include -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o libout/apache2/module_libpassenger_common/Utils/StrIntUtils.o -c ext/common/Utils/StrIntUtils.cpp
g++ -Iext -Iext/common -Iext/libev -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/apache/include -I/usr/local/apache/include -m64 -fPIC -DPIC -I/usr/local/apache/include -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o libout/apache2/module_libpassenger_common/Utils/IOUtils.o -c ext/common/Utils/IOUtils.cpp
ext/common/Utils/IOUtils.cpp: In function ‘int Passenger::callAccept4(int, sockaddr*, socklen_t*, int)’:
ext/common/Utils/IOUtils.cpp:186: error: ‘::accept4’ has not been declared
rake aborted!
Command failed with status (1): [g++ -Iext -Iext/common -Iext/libev -fPIC -...]
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/build/cplusplus_support.rb:31:in `compile_cxx'
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/lib/phusion_passenger/common_library.rb:133:in `block (2 levels) in define_category_tasks'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => apache2 => libout/apache2/mod_passenger.so => libout/apache2/module_libpassenger_common/Utils/IOUtils.o
(See full trace by running task with --trace)
--------------------------------------------
It looks like something went wrong
Please read our Users guide for troubleshooting tips:
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.9.1.beta/doc/Users guide Apache.html
If that doesn't help, please use our support facilities at:
We'll do our best to help you.