Dear all,
I am trying to setup redmine in my ubuntu machine, and get to the point able to run redmine in webrick. Now I need setup passenger to run it in Apache.
My problem:
When I added the following line in my apache config,
LoadModule passenger_module modules/mod_passenger.so
PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.12
PassengerRuby /usr/bin/ruby1.9.1
I couldn't start my apache, and it complains in the error log:
httpd: Syntax error on line 125 of /opt/lampp/etc/httpd.conf: Cannot load /opt/lampp/modules/mod_passenger.so into server: /opt/lampp/modules/mod_passenger.so: wrong ELF class: ELFCLASS64
(I have copied the mod_passenger.so to my apache modules dir)
Researched a bit of my problem, it seems related to a mix of compiling the passenger w. 64-bit/32-bit libraries.
What I have tried:
- apt-get install ia32-libs
- tweaked with gcc/g++ -m32 and -m64 flags in gems/passenger-3.0.12/build/config.rb file.
Basically, the default is -m64 and eventually run to the ELFCLASS64 error message. If I switch to -m32, when I run passenger-install-apache2-module , it give me compilation error msg of the following:
In file included from ext/apache2/module_libpassenger_common/aggregate.cpp:5:0:
ext/common/AccountsDatabase.cpp:26:23: fatal error: sys/types.h: No such file or directory
compilation terminated.
rake aborted!
Command failed with status (1): [g++ -m32 -Iext -Iext/common -Iext/libev -f...]
My machine config:
OS: 64-bit Ubuntu 12.04LTS
I am using Apache friends - xampp package, version: 1.7.7, which yield me an Apache version of 2.2.21
Would any expert please shed some light on what I can do to get my passenger up and running? Thanks a lot!
- JC