[mod_python] linking installation problem

Dylan Vaughn dylanvaughn at yahoo.com
Thu Jan 2 09:54:55 EST 2003


Hello all, 

I'm trying to install mod_python and am running into
some errors - I'm running Red Hat Linux 7.3 and I've
already installed:

python 2.2.2 (from source, installed in
/usr/local/bin)
apache 2.0.43 (from source, installed in
/usr/local/apache2)

This is what I'm telling configure:

./configure \
--with-apxs=/usr/local/apache2/bin/apxs \
--with-python=/usr/local/bin/python2.2

which works fine, but when I do make I get at the end:

...lots of other stuff...:
/usr/local/apache2/build/libtool --silent --mode=link
gcc -o mod_python.la
-I/usr/local/src/mod_python-3.0.1/src/include
-I/usr/local/apache2/include
-I/usr/local/include/python2.2  -rpath
/usr/local/apache2/modules -module -avoid-version 
hlistobject.lo hlist.lo filterobject.lo connobject.lo
serverobject.lo util.lo tableobject.lo
requestobject.lo _apachemodule.lo mod_python.lo
-L/usr/local/lib/python2.2/config -Xlinker
-export-dynamic -lm -lpython2.2 -ldl -lpthread -lutil
-lm

*** Warning: This library needs some functionality
provided by -lpython2.2.
*** I have the capability to make that library
automatically link in when
*** you link to this library.  But I can only do this
if you have a
*** shared version of the library, which you do not
appear to have.

*** Warning: libtool could not satisfy all declared
inter-library
*** dependencies of module mod_python.  Therefore,
libtool will create
*** a static module, that should work as long as the
dlopening
*** application is linked with the -dlopen flag.

Now su and make install
  (or, if you only want to perform a partial install,
   you can use make install_dso and make
install_py_lib)

make[1]: Leaving directory
`/usr/local/src/mod_python-3.0.1/src'

and when I try make install I get:

...lots of other stuff...:
/usr/local/apache2/build/libtool --silent
--mode=compile gcc   -DAP_HAVE_DESIGNATED_INITIALIZER
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2
-pthread -I/usr/local/apache2/include
-I/usr/local/src/mod_python-3.0.1/src/include
-I/usr/local/apache2/include
-I/usr/local/include/python2.2  -c -o hlistobject.lo
hlistobject.c && touch hlistobject.slo
/usr/local/apache2/build/libtool --silent --mode=link
gcc -o mod_python.la
-I/usr/local/src/mod_python-3.0.1/src/include
-I/usr/local/apache2/include
-I/usr/local/include/python2.2  -rpath
/usr/local/apache2/modules -module -avoid-version 
hlistobject.lo hlist.lo filterobject.lo connobject.lo
serverobject.lo util.lo tableobject.lo
requestobject.lo _apachemodule.lo mod_python.lo
-L/usr/local/lib/python2.2/config -Xlinker
-export-dynamic -lm -lpython2.2 -ldl -lpthread -lutil
-lm

*** Warning: This library needs some functionality
provided by -lpython2.2.
*** I have the capability to make that library
automatically link in when
*** you link to this library.  But I can only do this
if you have a
*** shared version of the library, which you do not
appear to have.

*** Warning: libtool could not satisfy all declared
inter-library
*** dependencies of module mod_python.  Therefore,
libtool will create
*** a static module, that should work as long as the
dlopening
*** application is linked with the -dlopen flag.

Now su and make install
  (or, if you only want to perform a partial install,
   you can use make install_dso and make
install_py_lib)

make[2]: Leaving directory
`/usr/local/src/mod_python-3.0.1/src'

Performing DSO installation.

/usr/bin/install -c src/mod_python.so
/usr/local/apache2/modules
/usr/bin/install: cannot stat `src/mod_python.so': No
such file or directory
make[1]: *** [install_dso] Error 1
make[1]: Leaving directory
`/usr/local/src/mod_python-3.0.1'
make: *** [install] Error 2
[root at dana mod_python-3.0.1]# 

I googled the errors and didn't get anywhere. 

Any ideas?

Thanks in advance,

Dylan


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the Mod_python mailing list