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

Graham Dumpleton graham.dumpleton at gmail.com
Mon Feb 11 04:48:54 EST 2008


Why do you want to get mod_python running? Is it only to run Django or
some other framework capable of running on WSGI compatible hosting
solution? If so, maybe you want to look at mod_wsgi instead. Version
2.0c4 of mod_wsgi will work out of the box on Leopard.

Anyway, without seeing exactly what modifications you made to
src/Makefile can only guess at this point. Also would need to see
exactly what error message you are getting.

You might also read:

  http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX

for ideas.

Graham

On 11/02/2008, Geert Dekkers <geert at nznl.com> wrote:
> Hi all :)
>
> Still having problems. Now apache2 complains mod_python.so has the
> wrong architecture. I've implemented the fixes I've found here and
> there (http://groups.google.com/group/django-users/msg/
> b211ba1193cb6092 - among others).
>
> A question - wouldn't I have apache2 running in 32 bit mode on my
> first-generation (2006) macbook pro. I found this hint http://forums.macosxhints.com/archive/index.php/t-62551.html
>   - tji, on 10-28-2006, 02:04 PM (halfway down the page) , and lo and
> behold, I seem to be running 32-bit:
>
> Size of Data Types on this System:
>
> Char = 1 bytes
> Integer = 4 bytes
> Long Integer = 4 bytes
> Long Long Integer = 8 bytes
> Double = 8 bytes
> Pointer = 4 bytes
>
>
> So, what could the problem be? Am I out of the race now?
>
> Geert
>
>
>
> On 10/02/2008, at 11:00 PM, Graham Dumpleton wrote:
>
> > 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
> >>
> >>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list