[mod_python] problems configuring mod_python on AIX.

Serier, Kees kees.serier at relan.nl
Wed May 2 13:00:15 EST 2001


Hello,

I'm trying to build apache with mod_python, but the configure script gives
some errors (lookup at the 1) and 2) in the configure ouput below:  *
Mod_python):
- 1) It seems that it can't find @sbindir@/httpd but it is both in:
     -rwxr-xr-x   1 root     beheer   1200657 Mar 15 09:58
/usr/local/apache/bin/httpd
     -rwxr-xr-x   1 root     beheer   1200657 Mar 15 09:58
/usr/local/apache/sbin/httpd
     and works just fine.
     Passing --sbindir=/usr/local/apache/sbin to the configure scripts
     doesn't help.				     
     /usr/local/apache/libexec exists but is empty
- 2) allthough I use --with-pythonn==/usr/local/src/Python-2.0, configure
     still wants to use python 1.5.2
And yes, it is right about the bloodpresure ;-)

Can anybody give me a tip?

Thanks in advance,

Kees Serier mailto:kees.serier at ordina.nl

* General information:
   AIX        4.2.1
   GCC        2.95.2 (locally build and installed from source)
   GNU-make   3.79.1 (locally build and installed from source)
   Python     2.0    (locally build and installed from source)
   Apache     1.3.19 (locally build and installed from source with DSO)
   Mod_python 2.7.2

  Apache is (default) installed in /usr/local/apache
    source in /usr/local/src/apache_1.3.19
    /usr/local/apache/sbin did was not installed with the default
    installation, I created it making a full copy from /usr/local/apache/bin
    the configure script there finds the apxs utility.
  Python is (default) installed in /usr/local/python
    source in /usr/local/src/Python-2.0
   
  Apache and Python are being used with CGI and MySQL.

* Mod_python:
   source in /usr/local/src/mod_python-2.7.2
   
   [/usr/local/src/mod_python-2.7.2]# ./configure
--with-python=/usr/local/src/Python-2.0
--with-apache=/usr/local/src/apache_1.3.19 --sbindir=/usr/local/apache/sbin
   This gives the following output:
   
   loading cache ./config.cache
   checking for gcc... (cached) gcc
   checking whether the C compiler (gcc  ) works... yes
   checking whether the C compiler (gcc  ) is a cross-compiler... no
   checking whether we are using GNU C... (cached) yes
   checking whether gcc accepts -g... (cached) yes
   checking for ranlib... (cached) ranlib
   checking for ar... (cached) ar
   checking for a BSD compatible install... ./install-sh -c
   checking whether make sets ${MAKE}... (cached) yes
   checking for main in -lm... (cached) yes
   checking for working const... (cached) yes
   checking your blood pressure... a bit high, but we can proceed
   checking whether apxs is available
   checking for --with-apxs... no
   checking for apxs in /usr/local/apache/sbin... found, we'll use this. Use
--with-apxs to specify another.
1) checking for Apache libexec directory... apxs:Error: @sbindir@/httpd not
found or not executable
   
1) checking for Apache include directory... apxs:Error: @sbindir@/httpd not
found or not executable
   -I
   checking for --with-apache... /usr/local/src/apache_1.3.19
   checking for --with-python... /usr/local/src/Python-2.0
2) checking for python... (cached) /usr/local/src/Python-1.5.2/python
2) checking Python version... ./configure[1310]:
/usr/local/src/Python-1.5.2/python:  not found
   
2) checking whether Python is compiled with thread support...
./configure[1316]: /usr/local/src/Python-1.5.2/python:  not found
   no threads, good
2) checking Python install prefix... ./configure[1335]:
/usr/local/src/Python-1.5.2/python:  not found
   
   checking what libraries Python was linked with...
/usr/local/src/Python-2.0/libpython.a   -ldl  -lpthreads   -lm
-lreadline -ltermcap                      -L/usr/local/lib -ltk8.0 -ltcl8.0
-L/usr/lib/X11 -lld -lX11   -lcurses -ltermcap       -L$(exec_prefix)/lib
-lz 
   checking linker flags used to link Python...  -Wl,-bE:python.exp -lld  
   checking where Python include files are... -I/usr/local/src/Python-2.0
-I/usr/local/src/Python-2.0/Include
   checking for mkdep... (cached) /usr/bin/X11/makedepend
   creating ./config.status
   creating Makefile
   creating src/Makefile
   creating src/libpython.module
   creating Doc/Makefile
   analyzing dependencies
-- end of message




More information about the Mod_python mailing list