mod_wsgi 64-bitPosted: February 11, 2011
When building mod_wsgi there are two things to remember if you are building on a 64-bit Linux system. My examples came from Red Hat Enterprise Linux 5 WS.
Here is the link to these and other problems:
First, When running configure make sure the –enable-shared switch is used. This will create a shared object library similar to this /usr/local/lib:
-r-xr-xr-x 1 root root 5624411 Feb 7 10:11 libpython2.6.so.1.0
You will need to add a link, so this library can be found by Apache or your web server:
lrwxrwxrwx 1 root root 19 Feb 7 10:11 libpython2.6.so -> libpython2.6.so .1.0
And finally, don’t forget to compile the library’s location into make (mod_wsgi’s build directory).
before running make install.
Building the shared library information is important, so you do not get an error like this:
Syntax error lin line 200 of /etc/httpd/conf/httpd.con Cannot load /etc/httpd/modules/mod_wsgi.so into server: libpython2.6.so.1.0: cannot open shared object file: No such file or directory
I had mistakenly thought you Apache would use environment variables to locate the shared library.