From: Stefan v. d. W. <st...@su...> - 2006-04-19 15:45:40
|
Hi Etienne On Wed, Apr 19, 2006 at 11:02:41AM -0400, Etienne Ringuet wrote: > I am trying to build matplotlib on a freshly installed CentOS 4 worksta= tion. >=20 > > error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe > -m32 -march=3Di386 -mtune=3Dpentium4 -D_GNU_SOURCE -fPIC -fPIC > -I/usr/share/tcl8.4/../../include -I/usr/share/tk8.4/../../include > -I/usr/local/include -I/usr/include -I. -Isrc -Iswig -Iagg23/include -I= . > -I/usr/local/include -I/usr/include -I. > -I/usr/share/tcl8.4/../../include/freetype2 > -I/usr/share/tk8.4/../../include/freetype2 > -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 > -Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype= 2 > -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 > -I/usr/include/python2.3 -c src/_tkagg.cpp -o > build/temp.linux-i686-2.3/src/_tkagg.o" failed with exit status 1 > > I also have an error at the beginning that says I miss tk.h, my system = is in > french so I will not paste this part. I just ran into this problem again myself, on an Ubuntu machine. It has been present for a while. A quick fix is to edit 'setup.py' and change the line BUILD_TKAGG =3D 'auto' to BUILD_TKAGG =3D 0 Another solution is to install the Tk development headers. Under Ubuntu it is in the package tk8.4-dev. This is probably something that should be caught by setup.py before building though! Regards St=E9fan |