[mod_python] apache compile problems

Steven D. Arnold stevena at permanent.cc
Sat May 20 23:42:32 EST 2000


Hi,

I'm trying to compile apache with mod_python and I'm getting the following 
error:

[root at catatonia apache_1.3.12]# ./configure 
--activate-module=src/modules/extra/mod_python.c --prefix=/usr/local/apache 
--enable-module=all
Configuring for Apache, Version 1.3.12
  + using installation path layout: Apache (config.layout)
  + activated python module (modules/extra/mod_python.c)
Creating Makefile
Creating Configuration.apaci in src
grep: /usr/lib/python1.5/config/Makefile: No such file or directory
grep: /usr/lib/python1.5/config/Makefile: No such file or directory
grep: /usr/lib/python1.5/config/Makefile: No such file or directory
grep: /usr/lib/python1.5/config/Makefile: No such file or directory
cd ..; gcc  -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite 
`./apaci` -I/usr/include/python1.5    -o helpers/dummy 
helpers/dummy.c   -lm -lcrypt -lndbm -ldb 
/usr/lib/python1.5/config/libpython1.5.a   -ldl
gcc: /usr/lib/python1.5/config/libpython1.5.a: No such file or directory
make: *** [dummy] Error 1
Creating Makefile in src
  + configured for Linux platform
  + setting C compiler to gcc
  + setting C pre-processor to gcc -E
  + checking for system header files
  + adding selected modules
     o rewrite_module uses ConfigStart/End
  + using -lndbm for DBM support
       enabling DBM support for mod_rewrite
     o dbm_auth_module uses ConfigStart/End
     o db_auth_module uses ConfigStart/End
       using Berkeley-DB/2.x for mod_auth_db (-ldb)
     o python_module uses ConfigStart/End
  + using -ldl for vendor DSO support
  + checking sizeof various data types
  + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

======== Error Output for sanity check ========
============= End of Error Report =============

  Aborting!


I have no directory /usr/lib/python1.5/config, though the parent of that 
dir does exist.  I just freshly installed python 1.5.2 before trying the 
above.  Platform is Red Hat Linux 6.2.  Any ideas?


steve

--
Steven D. Arnold          Que quiero sera           stevena at permanent.cc
"We choose to go to the moon in this decade and do the other things, not
because they are easy, but because they are hard."    -- John F. Kennedy




More information about the Mod_python mailing list