[Q] problem to setup mod_python

marvin Yoon dugiduck at orgio.net
Mon Apr 30 03:59:56 EDT 2001


hi every highlander people..:-)
I have some problem to setup mod_python so I posted this message.
I've used apache+PHP(static compiled in DSO mode) in web service and uses
python 1.5.2 in redhat RPM with redhat-linux system(6.1).
but, I want to use python in web these days, so I decided to setup
mod_python in my webserver.
so.....first, I receive mod_python-2.7.2 src file(tgz) in public python site
and, try to setup that.
but there are some errors has occured to me..
"./configure --with-apxs=/usr/local/apache/bin/apxs" is done.but some
warnings are..
"****** WARNING ******
  Python is compiled with thread support. Apache 1.3 does not use threads.
  On some systems this will cause problems during compilation, on others
  it may result in unpredictable behaviour of your Apache server. Yet on
  others it will work just fine. The recommended approach is to compile
  Python without thread support in a separate location and specify it with
  --with-python option to this ./configure script."

and then, I ordered make. but this time, not warning but errors had occured.
[root at ns2 mod_python-2.7.2]# make dso
make[1]: Entering directory
`/usr/lib/python1.5/site-packages/mod_python-2.7.2/src'
gcc  -I/usr/lib/python1.5/site-packages/mod_python-2.7.2/src/include -I/usr/
local/apache/include -I/usr/include/python1.5    -c -o mod_python.o
mod_python.c
In file included from mod_python.c:54:
/usr/lib/python1.5/site-packages/mod_python-2.7.2/src/include/mod_python.h:7
7: Python.h: no such file or directory
/usr/lib/python1.5/site-packages/mod_python-2.7.2/src/include/mod_python.h:7
8: structmember.h: no such file or directory
make[1]: *** [mod_python.o] Error 1
make[1]: Leaving directory
`/usr/lib/python1.5/site-packages/mod_python-2.7.2/src'
make: *** [do_dso] Error 2
[root at ns2 mod_python-2.7.2]# make
make[1]: Entering directory
`/usr/lib/python1.5/site-packages/mod_python-2.7.2/src'
gcc  -I/usr/lib/python1.5/site-packages/mod_python-2.7.2/src/include -I/usr/
local/apache/include -I/usr/include/python1.5    -c -o mod_python.o
mod_python.c
In file included from mod_python.c:54:
/usr/lib/python1.5/site-packages/mod_python-2.7.2/src/include/mod_python.h:7
7: Python.h: no such file or directory
/usr/lib/python1.5/site-packages/mod_python-2.7.2/src/include/mod_python.h:7
8: structmember.h: no such file or directory
make[1]: *** [mod_python.o] Error 1
make[1]: Leaving directory
`/usr/lib/python1.5/site-packages/mod_python-2.7.2/src'
make: *** [do_dso] Error 2

what's the problem..people.... :-(
plz, halp me so that I can use python in web-service.




¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ
          À±¼®¿µ( Marvin Yoon )
            dugiduck at orgio.net
           marvin at jobnlaw.com
         http://www.marvinz.com
     011-430-3063(mobile phone)
¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ





More information about the Python-list mailing list