Randy, could you try again with head of mod_wsgi repo. The fiddle for this is a PITA. On MacOS X looks like there may be a bug and they don't actually add the 'm' (ABIFLAGS) to library name even though python-config command says it should be there.
$ /usr/local/python-3.2.2/bin/python3.2-config --libs -ldl -framework CoreFoundation -lpython3.2m ls config-3.2m Makefile config.c libpython3.2.dylib Setup config.c.in makesetup Setup.config install-sh python.o Setup.local libpython3.2.a Thanks. Graham On 10 November 2011 11:52, Graham Dumpleton <[email protected]> wrote: > Have created ticket: > > http://code.google.com/p/modwsgi/issues/detail?id=250 > > to remind myself. > > I hope to start getting back to catching up on mod_wsgi stuff soon. > > Graham > > On 10 November 2011 11:38, Graham Dumpleton <[email protected]> > wrote: >> The library name has changed as well. Oddly on a Mac build it hasn't. >> >> Talk about making it hard. They are always screwing around with things >> in ways that stuffs up people doing embedded Python. :-( >> >> Was that a self built Python installation as no shared library was >> installed either, which would be the case if you built it yourself and >> didn't use --enable-shared option to configure for Python when >> building it. >> >> I would recommended trying to get a shared library version installed. >> >> Otherwise, you will need to modify the generated mod_wsgi Makefile to >> fix -L and -l flags to correct values for now. >> >> BTW, am presuming you must be using mod_wsgi from source repo as not >> even sure last tar ball works with Python 3.2. >> >> Graham >> >> On 10 November 2011 11:33, Randy Melder <[email protected]> wrote: >>> # ls -las libpython3.2* config* >>> ls: libpython3.2*: No such file or directory >>> 0 lrwxrwxrwx 1 root root 11 Nov 9 19:02 config -> config-3.2m >>> 48 -rw-r--r-- 1 root root 49010 Nov 9 18:40 configparser.py >>> >>> config-3.2m: >>> total 10900 >>> 4 drwxr-xr-x 2 root root 4096 Nov 9 18:41 . >>> 4 drwxr-xr-x 32 root root 4096 Nov 9 19:02 .. >>> 4 -rw-r--r-- 1 root root 2894 Nov 9 18:41 config.c >>> 4 -rw-r--r-- 1 root root 1642 Nov 9 18:41 config.c.in >>> 8 -rwxr-xr-x 1 root root 7122 Nov 9 18:41 install-sh >>> 10776 -rw-r--r-- 1 root root 11015904 Nov 9 18:41 libpython3.2m.a >>> 56 -rw-r--r-- 1 root root 50080 Nov 9 18:41 Makefile >>> 8 -rwxr-xr-x 1 root root 7460 Nov 9 18:41 makesetup >>> 12 -rw-r--r-- 1 root root 8832 Nov 9 18:41 python.o >>> 16 -rw-r--r-- 1 root root 15017 Nov 9 18:41 Setup >>> 4 -rw-r--r-- 1 root root 370 Nov 9 18:41 Setup.config >>> 4 -rw-r--r-- 1 root root 41 Nov 9 18:41 Setup.local >>> >>> >>> On Wed, Nov 9, 2011 at 4:29 PM, Graham Dumpleton >>> <[email protected]> wrote: >>>> For a start it seems that they have renamed the 'config' directory in >>>> Python 3.2 to 'config-3.2m'. I have no idea what the 'm' is meant to >>>> be for. >>>> >>>> I haven't noticed as I develop on a Mac which doesn't rely on that >>>> directory as uses Mac OS X frameworks instead. >>>> >>>> I don't understand why it wouldn't work if you did: >>>> >>>> ln -s config-3.2m config >>>> >>>> unless there is also a 'config' directory and it put the link inside >>>> of that directory. >>>> >>>> Can you send me output of running: >>>> >>>> cd /usr/local/python3/lib/python3.2 >>>> >>>> ls -las libpython3.2* config* >>>> >>>> Graham >>>> >>>> On 10 November 2011 11:09, Randy Melder <[email protected]> wrote: >>>>> I'm attempting to install using the following configuration: >>>>> >>>>> ./configure --with-python=/usr/local/python3/bin/python3 >>>>> >>>>> and I get this running "make" >>>>> .... >>>>> /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o >>>>> mod_wsgi.la -rpath /usr/lib64/httpd/modules -module -avoid-version >>>>> mod_wsgi.lo -L/usr/local/python3/lib -L/usr/local/python3/lib/ >>>>> python3.2/config -lpython3.2 -lpthread -ldl -lutil -lm >>>>> /usr/bin/ld: cannot find -lpython3.2 >>>>> collect2: ld returned 1 exit status >>>>> apxs:Error: Command failed with rc=65536 >>>>> . >>>>> make: *** [mod_wsgi.la] Error 1 >>>>> >>>>> >>>>> I attempted to symlink the "/usr/local/python3/lib/python3.2/config" >>>>> dir to the existing "config-3.2m", then "make clean" and make. That >>>>> didn't work either. >>>>> >>>>> Thoughts? >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "modwsgi" group. >>>>> To post to this group, send email to [email protected]. >>>>> To unsubscribe from this group, send email to >>>>> [email protected]. >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/modwsgi?hl=en. >>>>> >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "modwsgi" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group at >>>> http://groups.google.com/group/modwsgi?hl=en. >>>> >>>> >>> >>> >>> >>> -- >>> - - - - - - - - - - - - - - - - - - - - - - - - >>> [email protected] >>> >>> NOTICE: The information contained in this e-mail is confidential and >>> is for the use only of the intended recipient. If you are not the >>> intended recipient, any disclosure, copy, distribution or other use of >>> this information is prohibited. If you have received this >>> communication in error please notify us immediately by telephone and >>> delete or discard this message immediately. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "modwsgi" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/modwsgi?hl=en. >>> >>> >> > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
