mod_wsgi 64-bit

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:

http://code.google.com/p/modwsgi/wiki/InstallationIssues

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).

 LD_RUN_PATH=/usr/local/lib make 

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.

Advertisements

2 Comments on “mod_wsgi 64-bit”

  1. yufeng says:

    if you say more clearly, i will thank you very much .now i still have the err. 😦

    • Your best bet is to contact the mod_wsgi group on google groups. I had the most difficult time setting this up on 64-bit Ubuntu, but almost no trouble setting up on 32-bit Ubuntu. The link I posted contains all the information. The mod_wsgi group is an extremely helpful group. Post all your configuration and describe it in detail. You should be able to get help.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s