Hi, I wanted to install python, numpy and matplotlib on Linux Ubuntu. I installed python with the following commands ./configure --enable-unicode=ucs4 make make install and then I installed numpy running python setup.py install Finally I came to matplotlib, that for the installation requires the commands python setup.py build python setup.py install but when I run the first (python setup.py build) I got the following output that I copied partially below. What am I doing wrong? Can anyone help? I had previously another version of python located in usr/bin while the current is in usr/local/bin. I guess I could remove the previous by the deleting the relative folder and now if I run the command 'which python' it actually says 'usr/local/bin/python' so I hope I done it correctly. If not, how can I uninstall any previous version of python? Do you think that somehow the error I get is caused by an unclean removal of that previous version?
Thanks and regards Francesco Here follows the output: ----------------------------------- GTK requires pygtk TKAgg requires TkInter GTKAgg requires pygtk running build running build_py running build_ext building 'matplotlib.backends._ns_backend_agg' extension gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prot\ otypes -fPIC' compile options: '-I/usr/local/lib/python2.4/site-packages/numpy/core/include -\ I/usr/include -I. -Isrc -Iswig -Iagg23/include -I. -I/usr/include -I. -I/usr/lo\ cal/lib/python2.4/site-packages/numpy/core/include/freetype2 -I/usr/include/fre\ etype2 -I./freetype2 -Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2\ -I./freetype2 -I/usr/include/freetype2 -I./freetype2 -I/usr/local/include/pyth\ on2.4 -c' extra options: '-DSCIPY=1' gcc: src/_image.cpp src/_image.cpp:5:17: png.h: No such file or directory In file included from /usr/local/include/python2.4/Python.h:8, from src/_image.cpp:7: /usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redef\ ined In file included from /usr/include/c++/3.3/i486-linux/bits/os_defines.h:39, from /usr/include/c++/3.3/i486-linux/bits/c++config.h:35, from /usr/include/c++/3.3/iostream:44, from src/_image.cpp:1: /usr/include/features.h:131:1: warning: this is the location of the previous de\ finition src/_image.cpp: In member function `Py::Object Image::write_png(const Py::Tuple&)': src/_image.cpp:626: error: `png_structp' undeclared (first use this function) src/_image.cpp:626: error: (Each undeclared identifier is reported only once for each function it appears in.) src/_image.cpp:626: error: parse error before `;' token src/_image.cpp:627: error: `png_infop' undeclared (first use this function) src/_image.cpp:628: error: aggregate `png_color_8_struct sig_bit' has incomplete type and cannot be defined src/_image.cpp:629: error: `png_uint_32' undeclared (first use this function) src/_image.cpp:629: error: parse error before `=' token src/_image.cpp:632: error: `png_bytep' undeclared (first use this function) src/_image.cpp:632: error: `row_pointers' undeclared (first use this function) src/_image.cpp:632: error: parse error before `[' token src/_image.cpp:634: error: `row' undeclared (first use this function) src/_image.cpp:645: error: `png_ptr' undeclared (first use this function) src/_image.cpp:645: error: `PNG_LIBPNG_VER_STRING' undeclared (first use this function) src/_image.cpp:645: error: `png_create_write_struct' undeclared (first use this\ function) src/_image.cpp:653: error: `info_ptr' undeclared (first use this function) src/_image.cpp:653: error: `png_create_info_struct' undeclared (first use this function) src/_image.cpp:657: error: `png_destroy_write_struct' undeclared (first use this function) src/_image.cpp:662: error: `setjmp' undeclared (first use this function) src/_image.cpp:670: error: `png_init_io' undeclared (first use this function) src/_image.cpp:673: error: `PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use this function) src/_image.cpp:673: error: `PNG_INTERLACE_NONE' undeclared (first use this function) src/_image.cpp:674: error: `PNG_COMPRESSION_TYPE_BASE' undeclared (first use this function) ... -- http://mail.python.org/mailman/listinfo/python-list