Python 2.4 and Tkinter

Eric Brunel eric_brunel at
Fri Dec 3 09:36:59 CET 2004

Jeffrey Barish wrote:
> OK, I downloaded tcl8.4.8 and tk8.4.8.  They are now installed.  Back to
> python2.4 make.  It now bombs at:
> gcc -pthread -shared build/temp.linux-i686-2.4/_tkinter.o
> build/temp.linux-i686-2.4/tkappinit.o -L/usr/X11R6/lib64
> -L/usr/X11R6/lib -L/usr/local/lib -ltk8.4 -ltcl8.4 -lX11 -o
> build/lib.linux-i686-2.4/
> *** WARNING: renaming "_tkinter" since importing it failed:
> cannot open shared object file: No such file or directory
> running build_scripts
> Here's what I don't get:
> root at duo:/tmp/Python-2.4# ls -l /usr/local/lib/
> -rwxr-xr-x    1 root     staff      893866 2004-12-02
> 15:28 /usr/local/lib/
> The library is there but gcc claims that it isn't.  Any suggestions?

Is /usr/local/lib in your LD_LIBRARY_PATH environment variable? It needs to be 
in the compiler options for the compilation phase, but then you have to put it 
in $LD_LIBRARY_PATH to be able to import the module.

- Eric Brunel <eric (underscore) brunel (at) despammed (dot) com> -
PragmaDev : Real Time Software Development Tools -

More information about the Python-list mailing list