On  1 Dec 2006, at 2:49 AM, Gary Poster wrote:


On Nov 15, 2006, at 2:32 PM, Todd Thal wrote:

I am having one "hades" of a heckuva time getting readline support for
Python-2.5 on a Mac OS 10.4.8.8.0

Thanks to Ronald and Skip for replying to this thread.  It took me a
little bit to connect the dots from their replies, so I thought I'd
share my experiences.  Maybe this can help someone, and maybe also
lead to Ronald or someone else clarifying the right way to use his
CFLAGS and LDFLAGS patch.

I'm using darwinports, so first I had to

sudo port install readline

Once that was done, I wanted to build a local, non-framework Python
with readline.  darwinports uses /opt/local, so Ronald's approach led
me to this best guess:

$ CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure --
prefix=/Users/gary/py

This should do the trick, more or less. The build script for the python.org installer uses:

./configure --prefix=/Users/gary/py LDFLAGS=-L/opt/local/lib OPT=-I/ opt/local/include

$ make

If you're using macports you might as well do 'port install python2.4'.

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to