_tkinter installation in python 2.5 on mandriva with a default 2.4

wyleu chris.lyon at spritenote.co.uk
Wed Oct 31 07:47:18 CET 2007


On 30 Oct, 22:36, "Martin v. Löwis" <mar... at v.loewis.de> wrote:
> > Should I need to download a later version of tkinter and/or should I
> > alter setup.py in my python install directory and then remake?
>
> Neither, nor. You need the Tk header files installed; they probably
> come in a package called libtk8.4-dev or some such in your system.
> If they are present when setup.py runs, _tkinter will get built
> automatically. If you don't have the header files of Tk installed,
> no amount of fiddling with setup.py, or getting alternative sources
> of tkinter, will actually get you a _tkinter module.
>
> HTH,
> Martin


There is indeed such  package on the system: libtk8.4-
devel-8.4.13-1mdk, which installs.
However upon running make in the python2.5.1 download directory

INFO: Can't locate Tcl/Tk libs and/or headers
running build_scripts
The only file on the system before installing the above package with a
libtk name is libtk8.4.so.0 in /usr/lib
after the package is installed /usr/lib contains:

  0 lrwxrwxrwx 1 root root     13 Oct 31 07:43 libtk8.4.so ->
libtk8.4.so.0*
969 -rwxr-xr-x 1 root root 986216 Apr 21  2006 libtk8.4.so.0*
  1 -rwxr-xr-x 1 root root    119 Apr 21  2006 libtk.so*
183 -rw-r--r-- 1 root root 186092 Apr 21  2006 libtkstub8.4.a

however make still complains of the non existance of the the Tcl/Tk
libs and/or headers

copying these file to /usr/local/lib where python2.5 seems to be makes
no difference.







More information about the Python-list mailing list