Python, readline and OS X

Mark Asbach mark.asbach at post.rwth-aachen.de
Fri Feb 2 03:30:07 EST 2007


Hi James, hi Ron,

> Where have you installed libreadline? Is LD_LIBRARY_PATH pointing to the
> directory libreadline.dylib? Did you install libreadline with fink? If
> so, try
> 
>    setenv LD_LIBRARY_PATH /sw/lib

That would probably make no difference since on Mac OS X that variable
is called DYLD_LIBRARY_PATH (contrary to SysV Unices).

> Bash (OSX default) and similar shells use this silly 2 part syntax:
> 
>    LD_LIBRARY_PATH=/sw/lib
>    export LD_LIBRARY_PATH

It's just your way of using it that makes it a 2 part syntax:

export DYLD_LIBRARY_PATH=/sw/lib

does the trick. And by the way: the bash construct is far less error
prone regarding quoting when used in shell scripts. 

Mark



More information about the Python-list mailing list