I am trying to compile matplotlib-0.82 on my RHEL 4 system.
But it fails at some point, maybe linked to Numeric.
[lws03] /nfs_mount/home/jcazier/devel/novi/new/matplotlib-0.82 $ python setup.py build
...
building 'matplotlib._nc_transforms' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -Isrc -I. -I/usr/local/include -I/usr/include -I/usr/include/python2.3 -c src/mplutils.cpp -o build/temp.linux-i686-2.3/src/mplutils.o -DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -Isrc -I. -I/usr/local/include -I/usr/include -I/usr/include/python2.3 -c src/_nc_transforms.cpp -o build/temp.linux-i686-2.3/src/_nc_transforms.o -DNUMERIC=1
In file included from /usr/include/python2.3/Python.h:8,
from ./CXX/Objects.hxx:9,
from ./CXX/Extensions.hxx:18,
from src/_transforms.h:12,
from src/_nc_transforms.cpp:2:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/i386-redhat-linux/bits/os_defines.h:39,
from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/i386-redhat-linux/bits/c++config.h:35,
from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/functional:54,
from src/_nc_transforms.cpp:1:
/usr/include/features.h:150:1: warning: this is the location of the previous definition
src/_nc_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory
src/_nc_transforms.cpp: In member function `Py::Object Bbox::update_numerix(const Py::Tuple&)':
src/_nc_transforms.cpp:436: error: `PyArrayObject' undeclared (first use this function)
...
I think that you must install the devel package for Numeric or numarray.
you're problem is this line:
src/_nc_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory
Regards,
N.
Jean-Baptiste wrote:
···
Hi !
I am trying to compile matplotlib-0.82 on my RHEL 4 system.
But it fails at some point, maybe linked to Numeric.
[lws03] /nfs_mount/home/jcazier/devel/novi/new/matplotlib-0.82 $ python setup.py build
...
building 'matplotlib._nc_transforms' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -Isrc -I. -I/usr/local/include -I/usr/include -I/usr/include/python2.3 -c src/mplutils.cpp -o build/temp.linux-i686-2.3/src/mplutils.o -DNUMERIC=1
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -Isrc -I. -I/usr/local/include -I/usr/include -I/usr/include/python2.3 -c src/_nc_transforms.cpp -o build/temp.linux-i686-2.3/src/_nc_transforms.o -DNUMERIC=1
In file included from /usr/include/python2.3/Python.h:8,
from ./CXX/Objects.hxx:9,
from ./CXX/Extensions.hxx:18,
from src/_transforms.h:12,
from src/_nc_transforms.cpp:2:
/usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/i386-redhat-linux/bits/os_defines.h:39,
from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/i386-redhat-linux/bits/c++config.h:35,
from /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/functional:54,
from src/_nc_transforms.cpp:1:
/usr/include/features.h:150:1: warning: this is the location of the previous definition
src/_nc_transforms.cpp:8:34: Numeric/arrayobject.h: No such file or directory
src/_nc_transforms.cpp: In member function `Py::Object Bbox::update_numerix(const Py::Tuple&)':
src/_nc_transforms.cpp:436: error: `PyArrayObject' undeclared (first use this function)
...
Any idea ?
Thanks
Jean-Baptiste
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net matplotlib-users List Signup and Options