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

Gregory (Grisha) Trubetskoy grisha at modpython.org
Sun May 12 15:10:52 EST 2002


Try configuring it with just one argument:

./configure --with-apxs=/usr/sbin/apxs

Grisha

On Sun, 12 May 2002, Mateusz Korniak wrote:

> I tried all afternoon without success :(
> First I compiled python 2.2.1
>
> Python-2.2.1]$ ./configure --without-threads
> $make
> 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
> --with-python=/home/matkor/src/Python-2.2.1
>
> 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
> directory
>
> 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
> /usr/local/lib/python2.2/site-packages/mod_python
> 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 ?
> TIA
>
> --
> Mateusz Korniak
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list