Using the latest SVN matplotlib, the TkAgg backed does not get built
even though all the libraries are installed (Linux 64-bit). The
following error message occurs during the build:
Tkinter: no
* Using default library and include directories for
* Tcl and Tk because a Tk window failed to open.
* You may need to define DISPLAY for Tk to work so
* that setup can determine where your libraries are
* located. Tkinter present, but header files are not
* found. You may need to install development
* packages.
This is even though lib64tk-devel and lib64tcl-devel are installed.
Strangely enough, when I remove lib64tcl-devel, the script proceeds
and picks up Tk, but it still can't determine the location of the
libraries (complains about not finding tkConfig.sh) - the build proceeds
but later fails because tcl.h is not found.
With both the tcl and tk headers installed, the only way actually to
build the TkAgg backend is to force it by
[gui_support]
tkagg = True
in setup.cfg. I still get the Tkinter error message given above, but
the backend builds successfully and I seem to be able to use it
without errors.
[jr@...2717... ~]$ locate tkConfig.sh
/usr/lib/tkConfig.sh
/usr/lib64/tkConfig.sh
/usr/lib64/tk8.6/tkConfig.sh
[jr@...2717... ~]$ locate tclConfig.sh
/usr/lib/tclConfig.sh
/usr/lib64/tclConfig.sh
/usr/lib64/tcl8.6/tclConfig.sh
System Info:
···
============================================================================
BUILDING MATPLOTLIB
matplotlib: 0.99.0.rc1
python: 2.6.1 (r261:67515, Apr 12 2009, 04:14:16)
[GCC
4.3.2]
platform: linux2
REQUIRED DEPENDENCIES
numpy: 1.3.0
freetype2: 9.20.3
OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.35
Tkinter: no
* Using default library and include
directories for
* Tcl and Tk because a Tk window failed to
open.
* You may need to define DISPLAY for Tk to work
so
* that setup can determine where your
libraries are
* located. Tkinter present, but header files
are not
* found. You may need to install development
* packages.
wxPython: 2.8.9.2
* WxAgg extension not required for wxPython >=
2.8
Gtk+: gtk+: 2.16.1, glib: 2.20.1, pygtk: 2.14.1,
pygobject: 2.16.1
Mac OS X native: no
Qt: no
Qt4: Qt: 4.5.0, PyQt4: 4.4.4
Cairo: 1.8.2
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.4.1
pytz: 2008i
OPTIONAL USETEX DEPENDENCIES
dvipng: 1.9
ghostscript: 8.64
latex: 3.141592
pdftops: 0.10.6