Hi, I'm new to using matplotlib and am having some problems installing the software package. Basically my setup is:
* Redhat 9.0
* gcc 3.3
* Python 2.4 (installed in a non-standard location)
* freetype 2.1.9 and numarray 1.2.2 also installed in a non-standard location.
Following the instructions on the matplotlib homepage, I:
'linux2' : [
'linux2' : [os.environ['ACSROOT'], os.environ['PYTHON_ROOT']
within matplotlib-0.72.1/setupext.py. The ACSROOT environment variable is where numarray is installed and the numarray headers can be found in $ACSROOT/include/numarray/.
2. Set BUILD_AGG=1
3. Run the command 'python setup.py build' which gives output that looks correct until gcc is executed:
building 'matplotlib._na_transforms' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -pipe -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT -DACE_HAS_AIO_CALLS -fcheck-new -Wall -fPIC -g -DDEBUG -O -DCCS_LIGHT -fPIC -Isrc -I. -I/alma/ACS-4.0/Python/include/python2.4 -c src/_na_transforms.cpp -o build/temp.linux-i686-2.4/src/_na_transforms.o -DNUMARRAY=1
In file included from /alma/ACS-4.0/Python/include/python2.4/Python.h:8,
/alma/ACS-4.0/Python/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /alma/ACS-4.0/gnu/include/c++/3.3/i386-redhat-linux/bits/os_defines.h:39,
/usr/include/features.h:131:1: warning: this is the location of the previous definition
src/_na_transforms.cpp:6:35: numarray/arrayobject.h: No such file or directory
Just looking at the output it appears as if the changes made to basedir (i.e., 'linux2') in setupext.py are not having any sort of effect (hence the error message about numarray/arrayobject.h not existing). Is there something blatantly wrong I'm doing? Any help would be greatly appreciated.
Thanks in advance,