From: KURT P. <pet...@ms...> - 2009-10-13 19:35:53
|
I'm pretty sure I have all the required minimal dependencies installed, but get an error when I sudo python setup.py build. Any thoughts? I can start python and import Tkinter without an error. So I don't know why it's not finding it. [code] sudo python setup.py build ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.99.1.1 python: 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] platform: linux2 REQUIRED DEPENDENCIES numpy: 1.2.1 freetype2: 9.20.3 OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.27 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.1 * WxAgg extension not required for wxPython >= 2.8 pkg-config: looking for pygtk-2.0 gtk+-2.0 * Package pygtk-2.0 was not found in the pkg-config * search path. Perhaps you should add the directory * containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH * environment variable No package 'pygtk-2.0' found * Package gtk+-2.0 was not found in the pkg-config * search path. Perhaps you should add the directory * containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH * environment variable No package 'gtk+-2.0' found * You may need to install 'dev' package(s) to * provide header files. Gtk+: no * Could not find Gtk+ headers in any of * '/usr/local/include', '/usr/include', '.' Mac OS X native: no Qt: no Qt4: no Cairo: 1.4.12 OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide adding pytz 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', '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', 'pytz', 'dateutil', 'dateutil/zoneinfo'] 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 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I. -I/usr/lib/python2.6/dist-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/usr/lib/python2.6/dist-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.6 -c src/_tkagg.cpp -o build/temp.linux-i686-2.6/src/_tkagg.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ In file included from /usr/include/c++/4.3/ext/hash_map:64, from ./CXX/Extensions.hxx:68, from src/_backend_agg.h:8, from src/_tkagg.cpp:18: /usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. src/_tkagg.cpp:30:18: error: tk.h: No such file or directory src/_tkagg.cpp:38: error: ISO C++ forbids declaration of ‘Tcl_Interp’ with no type src/_tkagg.cpp:38: error: expected ‘;’ before ‘*’ token src/_tkagg.cpp:42: error: ‘ClientData’ was not declared in this scope src/_tkagg.cpp:42: error: ‘Tcl_Interp’ was not declared in this scope src/_tkagg.cpp:42: error: ‘interp’ was not declared in this scope src/_tkagg.cpp:43: error: expected primary-expression before ‘int’ src/_tkagg.cpp:43: error: expected primary-expression before ‘char’ src/_tkagg.cpp:43: error: initializer expression list treated as compound expression src/_tkagg.cpp:44: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/lib/python2.6/dist-packages/numpy/core/include/numpy/__multiarray_api.h:958: warning: ‘int _import_array()’ defined but not used src/_tkagg.cpp:42: warning: ‘PyAggImagePhoto’ defined but not used error: command 'gcc' failed with exit status 1 [/code] |