Can't get passenger apache 2 module installed


#1

Hi

I have tried everything to get the passenger apache 2 module to install
but haven’t had any luck yet. Was hoping maybe someone else had similar
problems.

Running on apache v 2.2.3

Linux version 2.4.25 (Debian prerelease)

this is the error message i get when installing the module:

Welcome to the Phusion Passenger Apache 2 module installer, v2.0.3.

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++
  • Ruby development headers… found
  • OpenSSL support for Ruby… found
  • RubyGems… found
  • Rake… found at /usr/bin/rake
  • Apache 2… found at /usr/sbin/apache2
  • Apache 2 development headers… found at /usr/bin/apxs2
  • Apache Portable Runtime (APR) development headers… found at
    /usr/bin/apr-1-config
  • fastthread… found
  • rack… found


Compiling and installing Apache 2 module…
cd /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3
rake clean apache2
(in /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3)

In ext/apache2:

rm -rf Utils.o Bucket.o Logging.o System.o Configuration.o Hooks.o
mod_passenger.o mod_passenger.so ApplicationPoolServerExecutable

rm -r pkg

In ext/passenger:

make clean
rm -f Makefile

In ext/boost/src:

rm -f libboost_thread.a *.o

In test:

rm -f Apache2ModuleTests *.o

In benchmark:

rm -f DummyRequestHandler ApplicationPool

In ext/boost/src:

g++ -g -DPASSENGER_DEBUG -fPIC -I…/… -D_REENTRANT -DNDEBUG -c *.cpp
g++ -g -DPASSENGER_DEBUG -fPIC -I…/… -D_REENTRANT -DNDEBUG -c
pthread/exceptions.cpp
g++ -g -DPASSENGER_DEBUG -fPIC -I…/… -D_REENTRANT -DNDEBUG -c
pthread/once.cpp
g++ -g -DPASSENGER_DEBUG -fPIC -I…/… -D_REENTRANT -DNDEBUG -c
pthread/thread.cpp
ar cru libboost_thread.a *.o
ranlib libboost_thread.a

In ext/apache2:

g++ -I… -fPIC -g -DPASSENGER_DEBUG -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -DLINUX=2 -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
-I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok
-pthread -I/usr/include/apache2 -D_REENTRANT -g -DPASSENGER_DEBUG -Wall
-I/usr/local/include -c mod_passenger.c

In ext/apache2:

g++ -I… -fPIC -g -DPASSENGER_DEBUG -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -DLINUX=2 -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
-I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok
-pthread -I/usr/include/apache2 -D_REENTRANT -g -DPASSENGER_DEBUG -Wall
-I/usr/local/include -c Utils.cpp

In ext/apache2:

g++ -I… -fPIC -g -DPASSENGER_DEBUG -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -DLINUX=2 -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
-I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok
-pthread -I/usr/include/apache2 -D_REENTRANT -g -DPASSENGER_DEBUG -Wall
-I/usr/local/include -c Bucket.cpp

In ext/apache2:

g++ -I… -fPIC -g -DPASSENGER_DEBUG -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -DLINUX=2 -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
-I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok
-pthread -I/usr/include/apache2 -D_REENTRANT -g -DPASSENGER_DEBUG -Wall
-I/usr/local/include -c Logging.cpp

In ext/apache2:

g++ -I… -fPIC -g -DPASSENGER_DEBUG -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -DLINUX=2 -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
-I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok
-pthread -I/usr/include/apache2 -D_REENTRANT -g -DPASSENGER_DEBUG -Wall
-I/usr/local/include -c System.cpp

In ext/apache2:

g++ -I… -fPIC -g -DPASSENGER_DEBUG -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -DLINUX=2 -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
-I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok
-pthread -I/usr/include/apache2 -D_REENTRANT -g -DPASSENGER_DEBUG -Wall
-I/usr/local/include -c Configuration.cpp

In ext/apache2:

g++ -I… -fPIC -g -DPASSENGER_DEBUG -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -DLINUX=2 -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
-I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok
-pthread -I/usr/include/apache2 -D_REENTRANT -g -DPASSENGER_DEBUG -Wall
-I/usr/local/include -c Hooks.cpp
In file included from ApplicationPool.h:26,
from ApplicationPoolServer.h:38,
from Hooks.cpp:45:
Application.h: In constructor Passenger::Application::Application(const std::string&, int, const std::string&, bool, int)': Application.h:304: warning:%x’ yields only last 2 digits of year in
some
locales
Application.h: In destructor virtual Passenger::Application::~Application()': Application.h:320: warning:%x’ yields only last 2 digits of year in
some
locales
In file included from Hooks.cpp:45:
ApplicationPoolServer.h: In member function void Passenger::ApplicationPoolServer::shutdownServer()': ApplicationPoolServer.h:416: warning:%x’ yields only last 2 digits of
year in
some locales
ApplicationPoolServer.h:435: warning: %x' yields only last 2 digits of year in some locales ApplicationPoolServer.h:437: warning:%x’ yields only last 2 digits of
year in
some locales
ApplicationPoolServer.h: In member function void Passenger::ApplicationPoolServer::createStatusReportFIFO()': ApplicationPoolServer.h:520: warning:%x’ yields only last 2 digits of
year in
some locales
Hooks.cpp: In static member function static apr_status_t Hooks::Container::cleanup(void*)': Hooks.cpp:286: warning:%x’ yields only last 2 digits of year in some
locales
Hooks.cpp:290: warning: %x' yields only last 2 digits of year in some locales Hooks.cpp: In member functionvoid Hooks::sendRequestBody(request_rec*,
boost::shared_ptrPassenger::Application::Session&,
boost::shared_ptrPassenger::TempFile&)’:
Hooks.cpp:533: warning: %x' yields only last 2 digits of year in some locales Hooks.cpp: In constructorHooks::Hooks(apr_pool_t*, apr_pool_t*,
apr_pool_t*,
server_rec*)’:
Hooks.cpp:562: warning: %x' yields only last 2 digits of year in some locales Hooks.cpp: In member functionvoid Hooks::initChild(apr_pool_t*,
server_rec*)
‘:
Hooks.cpp:618: warning: %x' yields only last 2 digits of year in some locales Hooks.cpp:622: warning:%x’ yields only last 2 digits of year in some
locales
Hooks.cpp: In member function int Hooks::handleRequest(request_rec*)': Hooks.cpp:700: warning:%x’ yields only last 2 digits of year in some
locales
Hooks.cpp:745: warning: %x' yields only last 2 digits of year in some locales Hooks.cpp: In functionapr_status_t destroy_hooks(void*)’:
Hooks.cpp:861: warning: %x' yields only last 2 digits of year in some locales Hooks.cpp:865: warning:%x’ yields only last 2 digits of year in some
locales
Hooks.cpp:868: warning: %x' yields only last 2 digits of year in some locales Hooks.cpp: In functionint init_module(apr_pool_t*, apr_pool_t*,
apr_pool_t*,
server_rec*)’:
Hooks.cpp:893: warning: %x' yields only last 2 digits of year in some locales Hooks.cpp:904: warning:%x’ yields only last 2 digits of year in some
locales

In ext/apache2:

g++ -shared Utils.o Bucket.o Logging.o System.o Configuration.o Hooks.o
mod_passenger.o -fPIC -o mod_passenger.so -lstdc++ -lpthread
…/boost/src/libboost_thread.a -L/usr/lib -lapr-1

In ext/apache2:

g++ ApplicationPoolServerExecutable.cpp System.o Utils.o Logging.o -o
ApplicationPoolServerExecutable -I… -D_REENTRANT -g -DPASSENGER_DEBUG
-Wall -I/usr/local/include -DPASSENGER_DEBUG
…/boost/src/libboost_thread.a -lpthread
In file included from ApplicationPool.h:26,
from StandardApplicationPool.h:45,
from ApplicationPoolServerExecutable.cpp:51:
Application.h: In constructor Passenger::Application::Application(const std::string&, int, const std::string&, bool, int)': Application.h:304: warning:%x’ yields only last 2 digits of year in
some
locales
Application.h: In destructor virtual Passenger::Application::~Application()': Application.h:320: warning:%x’ yields only last 2 digits of year in
some
locales
In file included from StandardApplicationPool.h:51,
from ApplicationPoolServerExecutable.cpp:51:
SpawnManager.h: In member function void Passenger::SpawnManager::restartServer()': SpawnManager.h:122: warning:%x’ yields only last 2 digits of year in
some
locales
SpawnManager.h:132: warning: %x' yields only last 2 digits of year in some locales SpawnManager.h: In member functionPassenger::ApplicationPtr
Passenger::SpawnManager::handleSpawnException(const
Passenger::SpawnException&, const std::string&, bool, const
std::string&,
const std::string&, const std::string&, const std::string&)’:
SpawnManager.h:345: warning: %x' yields only last 2 digits of year in some locales SpawnManager.h:348: warning:%x’ yields only last 2 digits of year in
some
locales
SpawnManager.h:351: warning: %x' yields only last 2 digits of year in some locales SpawnManager.h:354: warning:%x’ yields only last 2 digits of year in
some
locales
SpawnManager.h: In member function void Passenger::SpawnManager::handleReloadException(const Passenger::SystemException&, const std::string&)': SpawnManager.h:383: warning:%x’ yields only last 2 digits of year in
some
locales
SpawnManager.h:385: warning: %x' yields only last 2 digits of year in some locales SpawnManager.h:388: warning:%x’ yields only last 2 digits of year in
some
locales
SpawnManager.h:391: warning: %x' yields only last 2 digits of year in some locales SpawnManager.h: In destructorPassenger::SpawnManager::~SpawnManager()’:
SpawnManager.h:460: warning: %x' yields only last 2 digits of year in some locales SpawnManager.h:463: warning:%x’ yields only last 2 digits of year in
some
locales
In file included from ApplicationPoolServerExecutable.cpp:51:
StandardApplicationPool.h: In member function bool Passenger::StandardApplicationPool::verifyState()': StandardApplicationPool.h:204: warning:%x’ yields only last 2 digits
of year
in some locales
StandardApplicationPool.h:213: warning: %x' yields only last 2 digits of year in some locales StandardApplicationPool.h:220: warning:%x’ yields only last 2 digits
of year
in some locales
StandardApplicationPool.h:222: warning: %x' yields only last 2 digits of year in some locales StandardApplicationPool.h: In member functionvoid
Passenger::StandardApplicationPool::cleanerThreadMainLoop()’:
StandardApplicationPool.h:323: warning: %x' yields only last 2 digits of year in some locales StandardApplicationPool.h:344: warning:%x’ yields only last 2 digits
of year
in some locales
StandardApplicationPool.h: In member function virtual boost::shared_ptr<Passenger::Application::Session> Passenger::StandardApplicationPool::get(const std::string&, bool, const std::string&, const std::string&, const std::string&, const std::string&)': StandardApplicationPool.h:597: warning:%x’ yields only last 2 digits
of year
in some locales
StandardApplicationPool.h:625: warning: %x' yields only last 2 digits of year in some locales ApplicationPoolServerExecutable.cpp: In member functionvoid
Server::statusReportThreadMain()’:
ApplicationPoolServerExecutable.cpp:112: warning: %x' yields only last 2 digits of year in some locales ApplicationPoolServerExecutable.cpp: In destructorServer::~Server()’:
ApplicationPoolServerExecutable.cpp:144: warning: %x' yields only last 2 digits of year in some locales ApplicationPoolServerExecutable.cpp:167: warning:%x’ yields only last
2
digits of year in some locales
ApplicationPoolServerExecutable.cpp: In member function void Client::processGet(const std::vector<std::string, std::allocator<std::string> >&)': ApplicationPoolServerExecutable.cpp:222: warning:%x’ yields only last
2
digits of year in some locales
ApplicationPoolServerExecutable.cpp:227: warning: %x' yields only last 2 digits of year in some locales ApplicationPoolServerExecutable.cpp:249: warning:%x’ yields only last
2
digits of year in some locales
ApplicationPoolServerExecutable.cpp: In member function void Client::processUnknownMessage(const std::vector<std::string, std::allocator<std::string> >&)': ApplicationPoolServerExecutable.cpp:296: warning:%x’ yields only last
2
digits of year in some locales
ApplicationPoolServerExecutable.cpp: In member function void Client::threadMain(boost::weak_ptr<Client>)': ApplicationPoolServerExecutable.cpp:313: warning:%x’ yields only last
2
digits of year in some locales
ApplicationPoolServerExecutable.cpp:318: warning: %x' yields only last 2 digits of year in some locales ApplicationPoolServerExecutable.cpp:346: warning:%x’ yields only last
2
digits of year in some locales
ApplicationPoolServerExecutable.cpp:348: warning: %x' yields only last 2 digits of year in some locales ApplicationPoolServerExecutable.cpp: In member functionint
Server::start()’:
ApplicationPoolServerExecutable.cpp:459: warning: %x' yields only last 2 digits of year in some locales ApplicationPoolServerExecutable.cpp: In functionint main(int,
char**)’:
ApplicationPoolServerExecutable.cpp:471: warning: %x' yields only last 2 digits of year in some locales.L1480’ referenced in section .rodata' of ../boost/src/libboost_thread.a(thread.o): defined in discarded section.gnu.linkonce.t.ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5
of …/boost/src/libboost_thread.a(thread.o)
.L1480' referenced in section.rodata’ of
…/boost/src/libboost_thread.a(thread.o): defined in discarded section
.gnu.linkonce.t._ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5_' of ../boost/src/libboost_thread.a(thread.o).L1473’ referenced in section .rodata' of ../boost/src/libboost_thread.a(thread.o): defined in discarded section.gnu.linkonce.t.ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5
of …/boost/src/libboost_thread.a(thread.o)
.L1480' referenced in section.rodata’ of
…/boost/src/libboost_thread.a(thread.o): defined in discarded section
.gnu.linkonce.t._ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5_' of ../boost/src/libboost_thread.a(thread.o).L1479’ referenced in section .rodata' of ../boost/src/libboost_thread.a(thread.o): defined in discarded section.gnu.linkonce.t.ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5
of …/boost/src/libboost_thread.a(thread.o)
.L1480' referenced in section.rodata’ of
…/boost/src/libboost_thread.a(thread.o): defined in discarded section
.gnu.linkonce.t._ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5_' of ../boost/src/libboost_thread.a(thread.o).L1479’ referenced in section .rodata' of ../boost/src/libboost_thread.a(thread.o): defined in discarded section.gnu.linkonce.t.ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5
of …/boost/src/libboost_thread.a(thread.o)
.L1480' referenced in section.rodata’ of
…/boost/src/libboost_thread.a(thread.o): defined in discarded section
.gnu.linkonce.t._ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5_' of ../boost/src/libboost_thread.a(thread.o).L1480’ referenced in section .rodata' of ../boost/src/libboost_thread.a(thread.o): defined in discarded section.gnu.linkonce.t.ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5
of …/boost/src/libboost_thread.a(thread.o)
.L1479' referenced in section.rodata’ of
…/boost/src/libboost_thread.a(thread.o): defined in discarded section
.gnu.linkonce.t._ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5_' of ../boost/src/libboost_thread.a(thread.o).L1480’ referenced in section .rodata' of ../boost/src/libboost_thread.a(thread.o): defined in discarded section.gnu.linkonce.t.ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5
of …/boost/src/libboost_thread.a(thread.o)
.L1479' referenced in section.rodata’ of
…/boost/src/libboost_thread.a(thread.o): defined in discarded section
.gnu.linkonce.t._ZN5boost9date_time23gregorian_calendar_baseINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEEmE16end_of_month_dayES4_S5_' of ../boost/src/libboost_thread.a(thread.o).L1501’ referenced in section .rodata' of ../boost/src/libboost_thread.a(thread.o): defined in discarded section.gnu.linkonce.t._ZN5boost9date_time11int_adapterIxE12from_specialENS0_14special_valuesE’
of …/boost/src/libboost_thread.a(thread.o)
.L1502' referenced in section.rodata’ of
…/boost/src/libboost_thread.a(thread.o): defined in discarded section
.gnu.linkonce.t._ZN5boost9date_time11int_adapterIxE12from_specialENS0_14special_valuesE' of ../boost/src/libboost_thread.a(thread.o).L1503’ referenced in section .rodata' of ../boost/src/libboost_thread.a(thread.o): defined in discarded section.gnu.linkonce.t._ZN5boost9date_time11int_adapterIxE12from_specialENS0_14special_valuesE’
of …/boost/src/libboost_thread.a(thread.o)
.L1505' referenced in section.rodata’ of
…/boost/src/libboost_thread.a(thread.o): defined in discarded section
.gnu.linkonce.t._ZN5boost9date_time11int_adapterIxE12from_specialENS0_14special_valuesE' of ../boost/src/libboost_thread.a(thread.o).L1504’ referenced in section .rodata' of ../boost/src/libboost_thread.a(thread.o): defined in discarded section.gnu.linkonce.t._ZN5boost9date_time11int_adapterIxE12from_specialENS0_14special_valuesE’
of …/boost/src/libboost_thread.a(thread.o)
collect2: ld returned 1 exit status
rake aborted!
Command failed with status (1): [g++ ApplicationPoolServerExecutable.cpp
Sy…]
/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/Rakefile:158
(See full trace by running task with --trace)


It looks like something went wrong

Please read our Users guide for troubleshooting tips:

/usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/doc/Users guide.html

If that doesn’t help, please use our support facilities at:

http://www.modrails.com/

We’ll do our best to help you.


#2

I have exactly the same problem.

2.6.9-023stab048.5-smp #1 SMP Wed Aug 20 18:58:38 MSD 2008 i686
GNU/Linux
Apache/2.2.3


#3

Same problem here. :frowning:

2.6.20.20-vs2.2.0.4 #2 SMP Mon May 19 22:24:49 GMT 2008 i686 GNU/Linux


#4

This seems to be a bug in order versions of GNU binutils. Please upgrade
your Linux distribution to a newer version.


#5

Thanks Hongli L…

Upgrade from Etch to Lenny.

I’m a guest on Linux-Vserver and my memory is probably just to low.

Also see the same issue (invalid):

http://code.google.com/p/phusion-passenger/issues/detail?id=204&can=1&q=debian&colspec=ID%20Type%20Status%20Priority%20Milestone%20Stars%20Summary