Python, readline and OS X

James Stroud jstroud at mbi.ucla.edu
Fri Feb 2 00:06:49 EST 2007


Ron Garret wrote:
> In article <eptsgb$d1g$1 at daisy.noc.ucla.edu>,
>  James Stroud <jstroud at mbi.ucla.edu> wrote:
> 
>>Is LD_LIBRARY_PATH pointing to the directory libreadline.dylib?
> 
> 
> It wasn't, but changing it so it did didn't fix the problem.  (I didn't 
> try recompiling Python, just running it.  I'll try rebuilding later.)

You must re-compile python, starting with configure so that configure 
can identify the readline libraries. Otherwise it will compile with no 
readline, which is your current situation

>>Bash (OSX default) and similar shells use this silly 2 part syntax:
>>
>>   LD_LIBRARY_PATH=/sw/lib
>>   export LD_LIBRARY_PATH
 >
> Actually you can do it in one line: export LD_LIBRARY_PATH=whatever

Ok. Now I'll switch to bash.

James



More information about the Python-list mailing list