SVN ltk error

Hi,

I was following the directions found here:

http://old.nabble.com/ImportError:-No-module-named-mplot3d-td24291309.html

which consists of:

svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib

matplotlib

python setup.py install

-when I executed that last command I get the following:

wayne@…793…:matplotlib$ sudo python setup.py install

···

============================================================================

BUILDING MATPLOTLIB

matplotlib: 1.0.svn

python: 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC

4.3.3]

platform: linux2

REQUIRED DEPENDENCIES

numpy: 1.3.0

freetype2: 9.20.3

OPTIONAL BACKEND DEPENDENCIES

libpng: 1.2.27

Tkinter: Tkinter: 70220, Tk: 8.5, Tcl: 8.5

wxPython: no

  • WXAgg’s accelerator requires `wx-config’. The

  • `wx-config’ executable could not be located in any

  • directory of the PATH environment variable. If you

  • want to build WXAgg, and wx-config is in some

  • other location or has some other name, set the

  • WX_CONFIG environment variable to the full path of

  • the executable like so: export WX_CONFIG=/usr/lib

  • /wxPython-2.6.1.0-gtk2-unicode/bin/wx-config

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: no

Cairo: 1.4.12

OPTIONAL DATE/TIMEZONE DEPENDENCIES

datetime: present, version unknown

dateutil: 1.4.1

pytz: 2008h

OPTIONAL USETEX DEPENDENCIES

dvipng: no

ghostscript: 8.64

latex: 3.141592

pdftops: 0.10.5

[Edit setup.cfg to suppress the above messages]

============================================================================

pymods [‘pylab’]

packages [‘matplotlib’, ‘matplotlib.backends’, ‘matplotlib.projections’, ‘matplotlib.testing’, ‘matplotlib.testing.jpl_units’, ‘matplotlib.tests’, ‘mpl_toolkits’, ‘mpl_toolkits.mplot3d’, ‘mpl_toolkits.axes_grid’, ‘matplotlib.sphinxext’, ‘matplotlib.numerix’, ‘matplotlib.numerix.mlab’, ‘matplotlib.numerix.ma’, ‘matplotlib.numerix.linear_algebra’, ‘matplotlib.numerix.random_array’, ‘matplotlib.numerix.fft’, ‘matplotlib.delaunay’]

running install

running build

running build_py

copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-i686-2.6/matplotlib/mpl-data

copying lib/matplotlib/mpl-data/matplotlib.conf -> build/lib.linux-i686-2.6/matplotlib/mpl-data

running build_ext

building ‘matplotlib.backends._tkagg’ extension

g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.6/src/agg_py_transforms.o build/temp.linux-i686-2.6/src/_tkagg.o build/temp.linux-i686-2.6/CXX/cxx_extensions.o build/temp.linux-i686-2.6/CXX/cxxsupport.o build/temp.linux-i686-2.6/CXX/IndirectPythonInterface.o build/temp.linux-i686-2.6/CXX/cxxextensions.o -L/usr/local/lib -L/usr/local/lib -ltk8.5 -ltcl8.5 -lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o build/lib.linux-i686-2.6/matplotlib/backends/_tkagg.so

/usr/bin/ld: cannot find -ltk8.5

collect2: ld returned 1 exit status

error: command ‘g++’ failed with exit status 1

I’ve searched for the ltk8.5 error on google and wasn’t able to find anything that helped. One that looked promising but failed to help: http://old.nabble.com/Building-matplotlib-0.99.1.1:-cannot-find–ltk8.5-(whereas-0.91.4-works)-td25677275.html#a25677275

I really want the mpl_toolkits.mplot3d library…

Thanks for any help,

Wayne