Hi,
I downloaded and tried to install matplotlib-0.83.1 under Redhat
Enterprise Linux 4.
Unfortunately, I am getting errors that are apparently related to
compilation of the C++ code (see below).
I don't know C++ and am at a loss as to what to do next.
I'd appreciate any help you can provide me in remedying these problems.
Thanks.
-g
···
===
$: uname -a
Linux localhost.localdomain 2.6.9-11.ELsmp #1 SMP Thu Jun 9 15:33:26
CDT 2005 i686 i686 i386 GNU/Linux
===
$: python
Python 2.3.4 (#1, Feb 18 2005, 12:15:38)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
===
$: python setup.py build
running build
running build_py
running build_ext
building 'matplotlib.backends._gtkagg' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32
-march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC
-I/usr/local/include -I/usr/include -Isrc -Iswig -Iagg23/include -I.
-I/usr/local/include -I/usr/include -I/usr/local/include/freetype2
-I/usr/include/freetype2 -Isrc/freetype2 -Iswig/freetype2
-Iagg23/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2
-I/usr/include/freetype2 -I/usr/local/include -I/usr/include
-I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/python2.3 -c
src/_gtkagg.cpp -o build/temp.linux-i686-2.3/src/_gtkagg.o
In file included from /usr/include/python2.3/Python.h:8,
from /usr/include/pygtk-2.0/pygobject.h:5,
from src/_gtkagg.cpp:10:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
from
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/cstring:51,
from src/_gtkagg.cpp:1:
/usr/include/features.h:150:1: warning: this is the location of the
previous definition
In file included from src/_gtkagg.cpp:10:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...'
before "typename"
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...'
before "typename"
error: command 'gcc' failed with exit status 1
===