[mod_python] macosx 10.5 - can't find mod_python.so - why?

Graham Dumpleton graham.dumpleton at gmail.com
Sun Feb 10 17:00:12 EST 2008


Please use reply-all and keep follow ups on the list.

See comment below.

On 11/02/2008, Geert Dekkers <geert at nznl.com> wrote:
> Hi Graham,
>
> Thanks for responding so quickly.
>
> The ouput of the sudo make install:
>
> geert-dekkers-computer:mod_python-3.3.1 geert$ sudo make install
> Password:
> make[3]: `psp_parser.c' is up to date.
> /System/Library/Frameworks/Python.framework/Versions/Current/bin/
> python setup.py build
> running build
> running build_py
> running build_ext
>
> 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.
>
> /users/geert/Applications/PhpDocumentor-1.4.0/PhpDocumentor-1.4.0/
> install -c -d /usr/libexec/apache2
> make[1]: execvp: /users/geert/Applications/PhpDocumentor-1.4.0/
> PhpDocumentor-1.4.0/install: Permission denied

And this is obviously your problem.

Change your user PATH such that that PHP stuff is last and not before
'/usr/bin'.

There is obviously a file called 'install' in that directory in your
path and it is getting in the way of /usr/bin/install being used as it
should.

Graham

> make[1]: *** [install_dso] Error 127
> cd dist && make install_py_lib
> make[3]: `psp_parser.c' is up to date.
> if test -z "" ; then \
>                 /System/Library/Frameworks/Python.framework/Versions/Current/bin/
> python setup.py install --optimize 2 --force ; \
>         else \
>                 /System/Library/Frameworks/Python.framework/Versions/Current/bin/
> python setup.py install --optimize 2 --force --root  ; \
>         fi
> running install
> running build
> running build_py
> running build_ext
> running install_lib
> copying build/lib.macosx-10.5-i386-2.5/mod_python/__init__.py -> /
> Library/Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/_psp.so -> /Library/
> Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/apache.py -> /
> Library/Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/cache.py -> /Library/
> Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/cgihandler.py -> /
> Library/Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/Cookie.py -> /
> Library/Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/importer.py -> /
> Library/Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/psp.py -> /Library/
> Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/publisher.py -> /
> Library/Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/python22.py -> /
> Library/Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/Session.py -> /
> Library/Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/testhandler.py -> /
> Library/Python/2.5/site-packages/mod_python
> copying build/lib.macosx-10.5-i386-2.5/mod_python/util.py -> /Library/
> Python/2.5/site-packages/mod_python
> byte-compiling /Library/Python/2.5/site-packages/mod_python/
> __init__.py to __init__.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/apache.py
> to apache.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/cache.py
> to cache.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/
> cgihandler.py to cgihandler.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/Cookie.py
> to Cookie.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/
> importer.py to importer.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/psp.py to
> psp.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/
> publisher.py to publisher.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/
> python22.py to python22.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/Session.py
> to Session.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/
> testhandler.py to testhandler.pyc
> byte-compiling /Library/Python/2.5/site-packages/mod_python/util.py to
> util.pyc
> writing byte-compilation script '/tmp/tmpIVf7U7.py'
> /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/
> Python.app/Contents/MacOS/Python -OO /tmp/tmpIVf7U7.py
> removing /tmp/tmpIVf7U7.py
> running install_egg_info
> Removing /Library/Python/2.5/site-packages/mod_python-3.3.1-py2.5.egg-
> info
> Writing /Library/Python/2.5/site-packages/mod_python-3.3.1-py2.5.egg-
> info
>
> On 10/02/2008, at 10:44 PM, Graham Dumpleton wrote:
>
> > On 11/02/2008, Geert Dekkers <geert at nznl.com> wrote:
> >> Hi all
> >>
> >> I'm on macosx leopard (10.5.1), trying to install mod_python. After
> >> the executing the tweaks for leopard, It seems as if everything makes
> >> && make installs ok, but there's no mod_python.so in /usr/libexec,
> >> where other modules live. Does anyone have similar experiences?
> >
> > What was the output when you ran 'sudo make install'?
> >
> > Graham
>
>


More information about the Mod_python mailing list