[Pythonmac-SIG] building 4-way framework build with readline?

Ronald Oussoren ronaldoussoren at mac.com
Thu May 21 10:03:02 CEST 2009


On 20 May, 2009, at 23:30, David Warde-Farley wrote:

> I've had success building the 4-way framework build using Ron's  
> instructions, but I can't seem to get it building with readline  
> linked in.
>
> I built a static readline 6.0 so that libreadline.a and libhistory.a  
> are both 4-architecture  fat binaries,  and configured python with
>
> ./configure --with-framework-name=Python64 --with-universal- 
> archs=all --enable-framework --enable-universalsdk=/ --with-libs='- 
> lexpat -lreadline -lncurses' --with-readline=$HOME/readline  
> MACOSX_DEPLOYMENT_TARGET=10.5 LD_LIBRARY_PATH=/Users/dwf/readline/lib
>
> but alas it still doesn't seem to build with readline. Any hints on  
> how to get this working?
>
> The relevant info seems to be

Not quite, you've removed the bit where the build process tries to  
compile the readline extension.

>
> checking how to link readline libs... -lreadline
> checking for rl_callback_handler_install in -lreadline... yes
> rm: conftest.dSYM: is a directory
> checking for rl_pre_input_hook in -lreadline... yes
> checking for rl_completion_display_matches_hook in -lreadline... yes
> checking for rl_completion_matches in -lreadline... no
> rm: conftest.dSYM: is a directory
> checking for broken nice()... no
>
> and during make:
>
> Failed to find the necessary bits to build these modules:
> _bsddb             dl                 gdbm
> imageop            linuxaudiodev      ossaudiodev
> readline           spwd               sunaudiodev
> To find the necessary bits, look in setup.py in detect_modules() for  
> the module's name.


The easiest way to build a 4-way universal binary with readline  
support is to use my release script:

   cd $PYTHONSRC/Mac/BuildScript
   $ ./build-installer.py --dep-target=10.5 --universal-args=all

This should work with Python 2.6.2 and later (it definitely works with  
the current version of the 2.6 branch in subversion, as well as the  
trunk and 3.x branch)

Ronald

>
>
>
> Thanks,
>
> David
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090521/6884d093/attachment.bin>


More information about the Pythonmac-SIG mailing list