[mod_python] Does anybody succeded in running mod_python with python 2.x under RH 7.x ?

Mateusz Korniak mateusz at ant.gliwice.pl
Sun May 12 20:05:12 EST 2002

I tried all afternoon without success :(
First I compiled python 2.2.1 

Python-2.2.1]$ ./configure --without-threads
It went Ok (with two warnings)

then  I did:
mod_python-2.7.8]$ ./configure   --prefix=/usr --exec-prefix=/usr 
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share 
--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec 
--localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man 
--infodir=/usr/share/info --with-apxs=/usr/sbin/apxs 

It complained about:
checking what libraries Python was linked with... grep: 
/home/matkor/src/Python-2.2.1/Modules/Makefile: No such file or directory
grep: /home/matkor/src/Python-2.2.1/Modules/Makefile: No such file or 

make again went OK, but make install failed:

$ make install
make[1]: Wchodzę katalog `/home/matkor/src/mod_python-2.7.8'
make[2]: Wchodzę katalog `/home/matkor/src/mod_python-2.7.8/src'
make[2]: Opuszczam katalog `/home/matkor/src/mod_python-2.7.8/src'

Performing DSO installation.

/usr/bin/install -c src/mod_python.so /usr/lib/apache
make[2]: Wchodzę katalog `/home/matkor/src/mod_python-2.7.8'
/usr/bin/install -c -d /usr/local/lib/python2.2/site-packages/mod_python
python /usr/local/lib/python2.2/compileall.py 
python: can't open file '/usr/local/lib/python2.2/compileall.py'
make[2]: *** [install_py_lib] Błąd 2

Having copying mod_pytho.so manually to /usr/lib/apache/
results an error:

$ /etc/rc.d/init.d/httpd configtest
Syntax error on line 271 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/mod_python.so into server: 
/etc/httpd/modules/mod_python.so: undefined symbol: openpty

Any ideas ?

Mateusz Korniak

More information about the Mod_python mailing list