Library paths

Quinn Dunkan quinn at retch.ugcs.caltech.edu
Thu Jan 25 15:41:46 EST 2001


On Thu, 25 Jan 2001 17:01:53 GMT, sp00fD <sp00fD at yahoo.com> wrote:
>I build Python2.0, and added in tk support.  Now when I try to use
>python, I get:
>ld.so.1: python: fatal: libtk8.3.so: open failed: No such file or
>directory
>
>I can set my LD_LIBRARY_PATH to point to the directory which holds the
>tk library and everything is cool.  The question is, is there any way
>to build python so that I don't have to add a LD_LIBRARY_PATH entry to
>all the users?

Well, you didn't mention what OS you're using, but under Irix or Linux (and
SunOS I believe), you can add -rpath /my/shlib/dir to the link line.  Usual
practice is, of course, to put your libraries in a standard dir, but sometimes
you can't or don't want to do that.



More information about the Python-list mailing list