I am trying to build Matplot 0.87.2 from source which I got from
By following the directions at
under Debian 3.1r0a for AMD64
When I type python setup.py build, I get this error
cannot find tcl/tk headers. giving up.
/usr/lib/tcl8.4 and /usr/lib/tk8.4 both exist.
According to this previous posting in response to the same problem
setupext.py must be edited to make sure the libraries are found.=20
However, I tried editing it and the error did not change. Here is the
diff between the old and new versions of setupext.py, and I'm
attaching both versions to this message.
Can anyone suggest what else I could try? Thanks.
< 'linux2' : ['/usr/local', '/usr',],
< 'linux' : ['/usr/local', '/usr',],
> 'linux2' : ['/usr/local', '/usr', '/usr/lib',],
> 'linux' : ['/usr/local', '/usr', '/usr/lib',],
< o.tcl_lib =3D "/usr/local/lib"
< o.tcl_inc =3D "/usr/local/include"
< o.tk_lib =3D "/usr/local/lib"
< o.tk_inc =3D "/usr/local/include"
< o.tkv =3D ""
> o.tcl_lib =3D "/usr/lib"
> o.tcl_inc =3D "/usr/include"
> o.tk_lib =3D "/usr/lib"
> o.tk_inc =3D "/usr/include"
> o.tkv =3D "8.4"
From: John Hunter <jdhunter@ac...> - 2006-04-06 01:32:28
>>>>> "Gil" == Gil Citro <citrog@...> writes:
Gil> cannot find tcl/tk headers. giving up.
Gil> /usr/lib/tcl8.4 and /usr/lib/tk8.4 both exist.
But to the tk *headers* exist? Perhaps you need to install the
tk8.4-dev and tcl8.4-dev packages?
peds-pc311:~/mpl> ls /usr/include/tcl8.4/
tclDecls.h tclPlatDecls.h tkDecls.h tkPlatDecls.h
tcl.h tcl-private tk.h tk-private
You also have the option of not building the tkagg backend, and using
gtk*, qtagg or wxagg.