2009/4/5 Darryl Cousins <darryljcous...@gmail.com>: > > On Sat, Apr 4, 2009 at 8:41 PM, Graham Dumpleton > <graham.dumple...@gmail.com> wrote: >> >> 2009/4/4 Darryl Cousins <darryljcous...@gmail.com>: >>> >>> On Sat, Apr 4, 2009 at 7:51 PM, Graham Dumpleton >>> <graham.dumple...@gmail.com> wrote: >>>> >>>> 2009/4/4 Darryl Cousins <darryljcous...@gmail.com>: >>>>> >>>>> Hi, >>>>> >>>>> Thank you your reply and your suggestions. >>>>> >>>>> On Sat, Apr 4, 2009 at 6:22 PM, Graham Dumpleton >>>>> <graham.dumple...@gmail.com> wrote: >>>>>> >>>>>> 2009/4/4 Darryl Cousins <darryljcous...@gmail.com>: >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I've dug around the posts on this issue but still fail to achieve. >>>>>>> >>>>>>> Python-2.5.2 compiled and installed using: >>>>>>> >>>>>>> HOME=/usr/local >>>>>>> PYHOME=$HOME/Python >>>>>>> VERSION=2.5.2 >>>>>>> PACKAGE=Python-$VERSION >>>>>>> >>>>>>> ./configure --prefix=$PYHOME/$PACKAGE \ >>>>>>> --enable-framework=$PYHOME/$PACKAGE/frameworks \ >>>>>>> --enable-shared \ >>>>>>> --with-pyexpat \ >>>>>>> --with-universal-archs=all \ >>>>>>> --enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.5 >>>>>> >>>>>> What do you get for running: >>>>>> >>>>>> make -n >>>>>> >>>>>> for mod_wsgi, after having run: >>>>>> >>>>>> make clean >>>>> >>>>> $ make -n >>>>> /usr/local/apache2/bin/apxs -c >>>>> -I/usr/local/Python/Python-2.5.2/include/python2.5 -DNDEBUG >>>>> -Wc,'-arch i386' mod_wsgi.c -arch i386 >>>>> -L/usr/local/Python/Python-2.5.2/lib/python2.5/config -lpython2.5 -ldl >>>>> >>>>>> >>>>>> If you reinstall Python and don't include '--enable-shared' option to >>>>>> its configure script, and then rebuild mod_wsgi, first rerunning its >>>>>> configure script, what do you then get for 'make -n'. >>>>>> >>>>>> On first glance, you are missing certain options that should be in >>>>>> generated Makefile. My guess is because you have confused Python >>>>>> installation by having options for both MacOS Framework and shared >>>>>> libraries defined at same time when you shouldn't have. >>>>> >>>>> I have endeavored to have an isolated python installation in /usr/local >>>>> >>>>>> >>>>>> The options one would use for a Python framework build on MacOS X >>>>>> would be something like: >>>>>> >>>>>> ./configure --prefix=/usr/local/python-2.5.4 \ >>>>>> --enable-framework=/usr/local/python-2.5.4/frameworks \ >>>>>> --enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.5 \ >>>>>> --with-universal-archs=all >>>>>> >>>>>> You shouldn't use --enable-shared. Not even sure that the expat option >>>>>> is needed. >>>>> >>>>> I only recently added enable-framework and with-universal-arch after >>>>> reading so at InstallationOnMacOSX [1] >>>>> >>>>> Rebuilt python as you propose: >>>>> >>>>> ./configure --prefix=usr/local/Python/Python-2.5.2 \ >>>>> --enable-framework=usr/local/Python/Python-2.5.2/frameworks \ >>>>> --with-universal-archs=all \ >>>>> --enable-universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.5 >>>> >>>> If that is what you used, you managed to drop out leading slashes on >>>> paths given to --prefix and --enable-framework. Thus not likely >>>> installed where you expected it to. >>> >>> >>>> Anyway, the installed Pythin is still somehow stuff up, as shouldn't >>>> see a -L flag in build. Suggest you do the following: >>> >>> Thanks Graham, >>> >>> (Leading slashes dropped in email only) >>> >>> Problems building with framework option. This is at this point of >>> topic to specific mod_wsgi. Thanks for your help so far. >> >> Not sure what you are saying here. Whether you got it working, or >> whether you are of the opinion that mod_wsgi has a problem and that >> there is nothing wrong with your Python installation. >> >> Where are we at?? > > Hi Graham, > > Apologies for not being clear. My problem is back with python > installation when building with the --enable-framework option and > therefore off topic to mod_wsgi. Thanks again for your help.
Which particular problem is that now? Can still help you out as use MacOS X myself so know the various problems. Graham --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---