[mod_python] Compiling mod_python against 64 bit

David Gossage dgossage at zacks.com
Wed Jun 11 12:27:31 EDT 2008

I downloaded mod_python 3.3.1 and am installing it on a CentOS5 64bit
server with python 2.4 and apache 2.2.6.  Apache was built from source,
and python was included, but I installed python-devel via yum which
grabbed the x86 and x86_64 rpms.

mod_python configures and makes/installs fine, but when I add the
LoadModule line and attempt to stop/start apache I get this error.

httpd: Syntax error on line 56 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/modules/mod_python.so into
server: /usr/local/apache/modules/mod_python.so: wrong ELF class:

Do I need to do anything special for installing in a 64bit environment?

More information about the Mod_python mailing list