Problem compiling Python 1.5.2 w/Tkinter on Linux

Joshua Macy amused at webamused.com
Sun Mar 19 22:28:09 EST 2000


*puntero_loko wrote:
> 
> Joshua Macy dijo sobre Problem compiling Python 1.5.2 w/Tkinter on Linux,
> en fecha: Sun, 19 Mar 2000 17:40:43 GMT
> 
> | I'm trying to compile Python 1.5.2 on my Caldera OpenLinux 2.2 box
> |(kernel 2.2.5), and make has the following complaint:
> |
> |gcc  -Xlinker -export-dynamic python.o \
> |         ../libpython1.5.a -L/usr/lib -ltk8.0 -ltcl8.0 -L/usr/X11R6/lib
> |-lX11        -ldl  -lm  -o python
> |/usr/i386-linux/bin/ld: cannot open -lX11: No such file or directory
> |make[1]: *** [link] Error 1
> |make[1]: Leaving directory `/usr/local/src/Python-1.5.2/Modules'
> |make: *** [python] Error 2
> |
> 
> You need to install the package xlib6-dev (or something similar).


  I did have that installed, or as near as I could tell I did, since the
/usr/X11/lib directory contained the expected libX11.so.6.1 and other
stuff.  What seemed to be missing (and I don't know why) was libX11.so
itself, so at the suggestion of someone else who replied by e-mail, I
made a link from libX11.so to libX11.so.6.1  That fixed the problem.  I
still don't really understand why that file/link was missing if it's
part of the development package, but Python 1.5.2 works and so does
Tkinter, so I'm happy. (At least until someone tells me why that link
will irreversibly screw up my system in the future ;-))


  Joshua



More information about the Python-list mailing list