HI, While installing matplot lib, I am facing errors given below after trying "python setup.py build". I made it sure that freetype (>= 2.1.7), libpng and zlib are installed along with there devel versions. Can any one help?
running build running build_py copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.linux-i686-2.5/matplot lib/mpl-data running build_ext building 'matplotlib.backends._tkagg' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOU RCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/inc lude -I/usr/include -I/usr/local/include -I/usr/include -I. -Isrc -Iswig -Iagg23 /include -I. -I/usr/local/include -I/usr/include -I. -I/usr/include/freetype2 -I /usr/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 - I./freetype2 -Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./free type2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 -I/u sr/include/python2.5 -c src/_tkagg.cpp -o build/temp.linux-i686-2.5/src/_tkagg.o src/_tkagg.cpp:28:18: error: tk.h: No such file or directory src/_tkagg.cpp:36: error: ISO C++ forbids declaration of 'Tcl_Interp' with no ty pe src/_tkagg.cpp:36: error: expected ';' before '*' token src/_tkagg.cpp:40: error: 'ClientData' was not declared in this scope src/_tkagg.cpp:40: error: 'Tcl_Interp' was not declared in this scope src/_tkagg.cpp:40: error: 'interp' was not declared in this scope src/_tkagg.cpp:41: error: expected primary-expression before 'int' src/_tkagg.cpp:41: error: expected primary-expression before 'char' src/_tkagg.cpp:41: error: initializer expression list treated as compound expres sion src/_tkagg.cpp:42: error: expected ',' or ';' before '{' token ./CXX/Extensions.hxx: In constructor 'Py::PythonExtension<T>::PythonExtension() [with T = BufferRegion]': src/_backend_agg.h:61: instantiated from here ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor 'Py::PythonExtension<T>::PythonExtension() [with T = LazyValue]': src/_transforms.h:27: instantiated from here ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor 'Py::PythonExtension<T>::PythonExtension() [with T = Func]': src/_transforms.h:379: instantiated from here ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor 'Py::PythonExtension<T>::PythonExtension() [with T = FuncXY]': src/_transforms.h:466: instantiated from here ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect ./CXX/Extensions.hxx: In constructor 'Py::PythonExtension<T>::PythonExtension() [with T = Transformation]': src/_transforms.h:538: instantiated from here ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect src/_tkagg.cpp: At global scope: src/_tkagg.cpp:40: warning: 'PyAggImagePhoto' defined but not used error: command 'gcc' failed with exit status 1 With regards Sabyasachi _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor