[mod_python] A newbie question

JWang at fhsu.edu JWang at fhsu.edu
Sun Jun 25 15:53:23 EDT 2006


Karl, Graham,
I have no problem with installing mod_python by using rpm (httpd and 
python) on Linux AS 4. But, I would like to install Apache 2.0.54 or 
2.2.2, Python 2.4 and mod_python 3.2.8 with source codes. The following 
output of "make install" bothers me because it does not create 
mod_python.so at /usr/local/apache/module. In fact, it does not create 
mod_python.so anywhere at all. 

I found /usr/local/src/mod_python-3.2.8/src/mod_python.so is a link 
/usr/local/src/mod_python-3.2.8/src/mod_python.so -> .libs/mod_python.so. 
Under  /usr/local/src/mod_python-3.2.8/src/.libs/mod_python.so there is no 
mod_python.so at all. I appreciate it if someone has a solution to fix it.

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)


Performing DSO installation.

/usr/bin/install -c -d /usr/local/apache/modules
/usr/bin/install -c src/mod_python.so /usr/local/apache/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.2.8'
make[1]: Entering directory `/usr/local/src/mod_python-3.2.8'
cd dist && make install_py_lib
make[2]: Entering directory `/usr/local/src/mod_python-3.2.8/dist'
make[3]: Entering directory `/usr/local/src/mod_python-3.2.8/src'
make[3]: `psp_parser.c' is up to date.
make[3]: Leaving directory `/usr/local/src/mod_python-3.2.8/src'
if test -z "" ; then \
        /usr/local/bin/python2.4 setup.py install --optimize 2 --force ; \
else \
        /usr/local/bin/python2.4 setup.py install --optimize 2 --force 
--root  ; \
fi
running install
running build
running build_py
running build_ext
running install_lib
copying build/lib.linux-i686-2.4/mod_python/__init__.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/Cookie.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/_psp.so -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/psp.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/testhandler.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/util.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/python22.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/Session.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/cgihandler.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/publisher.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/apache.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
copying build/lib.linux-i686-2.4/mod_python/cache.py -> 
/usr/local/lib/python2.4/site-packages/mod_python
byte-compiling 
/usr/local/lib/python2.4/site-packages/mod_python/__init__.py to 
__init__.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/mod_python/Cookie.py 
to Cookie.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/mod_python/psp.py to 
psp.pyc
byte-compiling 
/usr/local/lib/python2.4/site-packages/mod_python/testhandler.py to 
testhandler.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/mod_python/util.py 
to util.pyc
byte-compiling 
/usr/local/lib/python2.4/site-packages/mod_python/python22.py to 
python22.pyc
byte-compiling 
/usr/local/lib/python2.4/site-packages/mod_python/Session.py to 
Session.pyc
byte-compiling 
/usr/local/lib/python2.4/site-packages/mod_python/cgihandler.py to 
cgihandler.pyc
byte-compiling 
/usr/local/lib/python2.4/site-packages/mod_python/publisher.py to 
publisher.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/mod_python/apache.py 
to apache.pyc
byte-compiling /usr/local/lib/python2.4/site-packages/mod_python/cache.py 
to cache.pyc
writing byte-compilation script '/tmp/tmpUcdLEa.py'
/usr/local/bin/python2.4 -OO /tmp/tmpUcdLEa.py
removing /tmp/tmpUcdLEa.py
make[2]: Leaving directory `/usr/local/src/mod_python-3.2.8/dist'
make[1]: Leaving directory `/usr/local/src/mod_python-3.2.8'





"Karl Kobata" <karl.kobata at syncira.com> 
06/25/2006 09:42 AM

To
<JWang at fhsu.edu>, <mod_python at modpython.org>
cc

Subject
RE: [mod_python] A newbie question






Initial thought.  To compile and install 3.2.8, I believe needs flex 
2.5.33 or newer.  RHN has flex 2.5.4.  you will need to make sure that 
this is current.  I would suggest when using the .configure, that options 
for flex, python, and apxs be fully specified to insure that you know 
which versions have be used to build mod_python.
 
It may be easier to start with what RHN provides for their servers.  ES 
packages should work on AS.  The latest released for ES is python 
2.3.4-14.x and mod_python 3.1.3-5.x.
- rename or move flex, and python binaries if applicable from 
/usr/local/bin .  if the default paths have not been modified, this 
directory will be searched before /usr/bin.
- install python first – “up2date python” – if up2date fails, one strong 
possibilities is that the python it files does not have the correct 
scripts in the site-packages directory under the pythonx.x directory. 
Next, using this command will also resolve any dependencies needed to make 
python work.  All should be done as root.
- next install mod_python – “up2date python” – this should address 
installing and resolving dependencies.
- check install and version
- “python –V” – see version above
- “which python” – should show “/usr/bin/python”
- check if mod_python.so installed in “/etc/httpd/modules”
- add the required changes into the .conf file - 
/etc/httpd/conf.d/python.conf.
            - add the load directive for mod_python.so
            - test if the server will read the .so file correctly
                        - stop the server – “/sbin/service httpd stop”
                        - execute “/usr/sbin/httpd –X –e DEBUG – the list 
of .so files loading should scroll by, mod_python.so should be in this 
list.
- assuming no errors/warnings to this point, restart the web server – 
“/sbin/service httpd restart
- now you will need to add into “python.conf” the <Directory…> directives, 
the restart server.
 
Hope this helps.
Good luck.
karl
 

From: mod_python-bounces at modpython.org 
[mailto:mod_python-bounces at modpython.org] On Behalf Of JWang at fhsu.edu
Sent: Saturday, June 24, 2006 9:09 AM
To: mod_python at modpython.org
Subject: [mod_python] A newbie question
 

Hi, 
I attempted to install Apache 2.0.54 (or Apache 2.2), python 2.4 and 
mod_python 3.2.8 on AS 4 from source codes, but I failed. The mod_python 
does not generate mod_python.so. Does anyone  run into the same problem 
and have a solution to fix it? Thanks! JW 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060625/2ef2b860/attachment-0001.html


More information about the Mod_python mailing list