I have installed Python 2.5 as a separate installation from 2.4, and am trying
to install matplotlib in the site-packages of the new version. I have installed
numpy and scipy successfully, but am having the following trouble when I try to
setup matplotlib. Any suggestions?
thank you...
···
_________________________________________________________________________
dell@...1276...:~/Python-2.5/Lib/site-packages/matplotlib-0.87.5$ sudo
python2.5 setup.py build
GTK requires pygtk
TKAgg requires TkInter
GTKAgg requires pygtk
running build
running build_py
running build_ext
building 'matplotlib._agg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC
compile options: '-Iagg23/include -Isrc -Iswig -I/usr/local/include/python2.5
-c'
gcc: src/agg.cxx
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
src/agg.cxx: In function int SWIG_Python_ConvertPtr(PyObject*, void**,
swig_type_info*, int):
src/agg.cxx:1231: error: invalid conversion from const char* to char*
src/agg.cxx: In function void SWIG_Python_FixMethods(PyMethodDef*,
swig_const_info*, swig_type_info**, swig_type_info**):
src/agg.cxx:27624: error: invalid conversion from const char* to char*
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
src/agg.cxx: In function int SWIG_Python_ConvertPtr(PyObject*, void**,
swig_type_info*, int):
src/agg.cxx:1231: error: invalid conversion from const char* to char*
src/agg.cxx: In function void SWIG_Python_FixMethods(PyMethodDef*,
swig_const_info*, swig_type_info**, swig_type_info**):
src/agg.cxx:27624: error: invalid conversion from const char* to char*
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -Iagg23/include -Isrc -Iswig
-I/usr/local/include/python2.5 -c src/agg.cxx -o
build/temp.linux-i686-2.5/src/agg.o" failed with exit status 1
dell@...1276...:~/Python-2.5/Lib/site-packages/matplotlib-0.87.5$