[Numpy-discussion] Numpy compilation error

Pradeep Jha jhapk@utias.utoronto...
Fri Apr 16 20:47:09 CDT 2010


Hi,

before running the make command, it asks me to run the preconfig file. When
I run preconfig, I get the following warning message during the run:
*checking for python2... /usr/bin/python2
Python command set by configure to  /usr/bin/python2
WARNING: NUMPY include dir
/nfs/carv/d1/people/pradeep/src/numpy-1.3.0//include/python does not exist.
setting NUMPY_INC_DIR to
/nfs/carv/d1/people/pradeep/src/numpy-1.3.0//include/python
checking for matlab... /usr2/local_net1/bin/matlab
checking MATLAB (/usr2/local_net1/bin/matlab)... /usr2/local_net1/bin/matlab

*In my preconfig file, there is a line where I am supposed to specify the
numpy location, and I do it like this:
*
# If numpy was installed using the --home option, set this to the
# home directory for numpy. This will be needed for all numpy installations
# that don't put the include files into python's native include directory.
NUMPY_HOME=${NUMPY_HOME:="/nfs/carv/d1/people/pradeep/src/numpy-1.3.0/"}
*
I have attached setup.py file with this email

Thank you so much.

2010/4/16 Robert Kern <robert.kern@gmail.com>

> On Fri, Apr 16, 2010 at 18:53, Pradeep Jha <jhapk@utias.utoronto.ca>
> wrote:
> > Hi,
> >
> > I changed it. I am not getting that error anymore, but I get the
> following
> > error:
> > running build
> > running build_py
> > running build_ext
> > building 'Cantera._cantera' extension
> > g++ -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2
> > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
> > -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -O3 -Wall
> > -fPIC -fPIC -I../../build/include -Isrc -I../clib/src
> > -I/nfs/carv/d1/people/pradeep/src/numpy-1.3.0//include/python
> > -I/usr/include/python2.4 -c src/pycantera.cpp -o
> > build/temp.linux-i686-2.4/src/pycantera.o
> > src/pycantera.cpp:25:31: error: numpy/arrayobject.h: No such file or
> > directory
>
> The error is with Cantera's setup.py, most likely. It is not providing
> the correct include path for numpy. Please show it.
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
>  -- Umberto Eco
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100416/0f88f96c/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup.py
Type: application/octet-stream
Size: 4469 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100416/0f88f96c/attachment-0001.obj 


More information about the NumPy-Discussion mailing list