Linux build failure when enabling tkinter

Mark Ardis maa at research.bell-labs.com
Thu Jun 1 11:37:43 EDT 2000


Dieter Maurer wrote:
> 
> Mark Ardis <maa at research.bell-labs.com> writes on Wed, 31 May 2000 11:31:35 -0500:
> > I am trying to build Python 1.5.2 on a Linux system (Mandrake 7.0).
> > I followed the directions in the Modules/Setup file for enabling
> > tkinter, but I still get errors when I run make test:
> >
> >   PYTHONPATH= ./python ./Lib/test/regrtest.py
> >   ./python: error in loading shared libraries: libtk8.3.so: cannot open
> > shared object file:    No such file or directory
> >   make: [test] Error 127 (ignored)
> >
> > Here is what I used in Modules/Setup:
> >
> >   TKPATH=:lib-tk
> >   _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
> >   -I/usr/local/include \
> >   -I/usr/X11R6/include/ \
> >   -L/usr/local/lib \
> >   -ltk8.3 -ltcl8.3 \
> >   -L/usr/X11R6/lib \
> >   -lX11
> >
> > I verified that libtk8.3.so is in /usr/local/lib/
> > I have recently installed Tcl/Tk 8.3 on my Linux system (HP Kayak XU),
> > and it
> > seems fine.
> Seems that "/usr/local/lib" is not in your "/etc/ld.so.conf", the
> configuration file of the dynamic linker.
> Try "ldconfig -p" to verify, whether "libtk8.3.so" is listed.
> 
> If not, you can either set "LD_LIBRARY_PATH" to include "/usr/local/lib"
> or (as root) edit "/etc/ld.so.conf" and then run "ldconfig".
> 
> You can use "ldd python" to get a list of shared objects used
> by python and determine whether some cannot be found.
> 
> Dieter

That did it.  Thanks!
Mark



More information about the Python-list mailing list