2009/4/16 frank h. <frank.hoffsum...@gmail.com>:
>
> Graham,
> thanks for your help, here comes the output
>
> $ grep LD Makefile
> LDFLAGS =  -F/Library/Frameworks -framework Python -u _PyMac_Error   -
> arch ppc
> LDLIBS =  -ldl
>        $(APXS) -c $(CPPFLAGS) $(CFLAGS) mod_wsgi.c $(LDFLAGS) $(LDLIBS)
>
> $ otool -L /opt/apache2/modules/mod_wsgi.so
> /opt/apache2/modules/mod_wsgi.so:
>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 88.1.12)
>        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> version 1.0.0)

Hmmm, lacking dependency on Python framework, which is why symbol
obviously coming up undefined.

What is in the directory:

  /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config

ie., run 'ls -las' in that directory.

Can you also possibly not install the Python version into /Library. Instead use:

./configure --prefix=/usr/local/python-2.6  \
 --enable-framework=/usr/local/python-2.6/frameworks \
 --enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.4 \
 --with-universal-archs=ppc

Then use:

  ./configure --with-python=/usr/local/python-2.6/bin/python2.6
--with-apxs=/opt/apache2/bin/apxs

BTW, because when setting:

CFLAGS='-arch ppc'
MACOSX_DEPLOYMENT_TARGET=10.4

you hadn't exported them, they wouldn't have done anything. Neither
are probably required anyway.

Finally, Apache under /opt is not furnished by Apache but is most
likely MacPorts version. Presence of MacPorts stuff always seems to
give problems. :-(

Graham

>
> cheers
> -frank
>
>
> On Apr 16, 1:10 pm, Graham Dumpleton <graham.dumple...@gmail.com>
> wrote:
>> Can you also post what the values of LDFLAGS and LDLIBS in the
>> generated Makefile in mod_wsgi source directory are after having run
>> configure.
>>
>> Graham
>>
>> 2009/4/16 Graham Dumpleton <graham.dumple...@gmail.com>:
>>
>> > What do you get when you run:
>>
>> >  otool -L mod_wsgi.so
>>
>> > Graham
>>
>> > 2009/4/16 frank h. <frank.hoffsum...@gmail.com>:
>>
>> >> Hi
>> >> I am trying to install mod_wsgi 2.4 on my PPC Mac OS X 10.4 Server
>> >> machine.
>> >> There is an apache2 living under /opt, furnished by Apple
>>
>> >> since Apache is
>> >> $ file /opt/apache2/bin/httpd
>> >> /opt/apache2/bin/httpd: Mach-O executable ppc
>>
>> >> I compiled my own Python 2.6.2 like this:
>>
>> >> curl -Ohttp://python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2
>> >> bzip2 -d Python-2.6.2.tar.bz2
>> >> tar xf Python-2.6.2.tar
>> >> cd Python-2.6.2
>> >> unset DYLD_LIBRARY_PATH
>> >> unset LD_LIBRARY_PATH
>> >> CFLAGS='-arch ppc'
>> >> MACOSX_DEPLOYMENT_TARGET=10.4
>> >> ./configure --enable-framework=/Library/Frameworks
>> >> make
>> >> sudo make install
>>
>> >> $ file /Library/Frameworks/Python.framework/Versions/2.6/Python
>> >> /Library/Frameworks/Python.framework/Versions/2.6/Python: Mach-O
>> >> dynamically linked shared library ppc
>>
>> >> then I compiled mod_wsgi as follows
>>
>> >> export MACOSX_DEPLOYMENT_TARGET=10.4
>> >> ./configure --with-apxs=/opt/apache2/bin/apxs --with-python=/Library/
>> >> Frameworks/Python.framework/Versions/2.6/bin/python
>> >> make
>> >> sudo make install
>>
>> >> $ file /opt/apache2/modules/mod_wsgi.so
>> >> /opt/apache2/modules/mod_wsgi.so: Mach-O bundle ppc
>>
>> >> then I change /opt/apache2/conf/http.conf to contain the line
>> >> LoadModule wsgi_module modules/mod_wsgi.so
>>
>> >> trying to start apache, I get the following error
>>
>> >> $ sudo /opt/apache2/bin/apachectl start
>> >> Syntax error on line 271 of /opt/apache2/conf/httpd.conf:
>> >> Cannot load /opt/apache2/modules/mod_wsgi.so into server: Symbol not
>> >> found: _PyExc_KeyError\n  Referenced from: /opt/apache2/modules/
>> >> mod_wsgi.so\n  Expected in: dynamic lookup\n
>>
>> >> not sure what is wrong there,
>> >> any insight is much appreciated!
>> >> thanks,
>> >> -frank
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to