Problem compiling Python on Suse 6.1

Henning Schroeder hschroeder at gmx.net
Fri Jul 30 07:25:12 EDT 1999


Tomaz Ficko <tomaz at gmx.net> wrote:
> I have a problem compiling Python 1.5.2 with Tk and readline support.
> I'm using Suse 6.1 (evaluation iso):
> gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
> Tcl/Tk 8.0.5
> bash-2.02
I had also some problems with TK and Readline on SuSE 6.0.
SuSE renamed some files in order to be compatible with older versions
They renamed 
 /usr/X11R6/include/tk.h to /usr/X11R6/include/tk8.0.h
 /usr/X11R6/lib/tkConfig.sh to /usr/X11R6/tkConfig8.0.sh
 /usr/X11R6/lib/libtk.a to /usr/X11R6/lib/libtk8.0.a
 /usr/X11R6/lib/libtk.so to /usr/X11R6/lib/libtk8.0.so
 /usr/include/tcl.h to /usr/include/tcl8.0.h
 /usr/lib/tclConfig.sh in /usr/tclConfig8.0.sh
 /usr/lib/libtcl.a to /usr/lib/libtcl8.0.a
 /usr/lib/libtcl.so to /usr/lib/libtcl8.0.so
See also /usr/doc/packages/tk8.0/README.SuSE and 
/usr/doc/packages/tcl8.0/README.SuSE.

So there are two ways to fix this. Either you rename your files which would
break other installed programs or you patch the source :-). For the second
way look into _tkinter.c and tkappinit.c and change some lines containing
tcl.h and tk.h into tcl8.0.h and tk8.0.h
Addionally look into Modules/Setup to make sure that you link tkinter with
the right libraries (-ltk8.0 -ltcl8.0)

To have readline support (and ncurses btw) add -L/usr/lib/termcap everywhere 
you find -ltermcap in your Modules/Setup. This seems SuSE specific, too.


Still Problems? Mail me.
  Henning 






More information about the Python-list mailing list