Thursday, April 2, 2009

Compiling mod_python on OSX

Source distribution of mod_python (3.3.1) didn't compile on my iMac, but that from the repository did:

svn co https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk mod_python_src
cd mod_python_src
./configure --with-apxs=/usr/local/apache2/bin/apxs --with-python=/usr/local/Python/Python-2.5.2/bin/python2.5
make
sudo make install

Note that I have built both apache2 and python2.5 from source on my system.

No comments: