[Numpy-discussion] Numpy 1.6.1 installation problem

Olivier Delalleau shish@keba...
Wed Feb 15 07:46:01 CST 2012


Le 15 février 2012 07:29, Martin Raspaud <martin.raspaud@smhi.se> a écrit :

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 14/02/12 16:48, Bruce Southey wrote:
> > On 02/14/2012 09:40 AM, Olivier Delalleau wrote:
> >> Really not an expert here, but it looks like it's trying various
> >> compilation options, some work and some don't, and for some reason
> >> it's really unhappy about the one where it can't find Python.h.
> >> Maybe add /usr/include/python2.6 to your CPATH, see if that helps (and
> >> make sure permissions are correctly set on this directory)? However,
> >> it may very well be something else....
>
> > This there a reason why you are using the fcompiler option?
> > If not just try the basic approach:
>
> > $ python setup.py build
>
>
> Hi guys,
>
> Thanks for the help. I'm getting past this error thanks to the CPATH
> environment variable.
>
> Unfortunately I get another error later on that the compiler can't find
> some C files...
>
> I attach the error.
>
> Best regards,
> Martin
>
> [...]
> creating build/temp.linux-x86_64-2.6/numpy/core/src/multiarray
> compile options: '-Inumpy/core/include
> - -Ibuild/src.linux-x86_64-2.6/numpy/core/include/numpy
> - -I/usr/lib64/python2.6/site-packages/numpy/core/include
> - -I/usr/include/python2.6 -Inumpy/core/src/private -Inumpy/core/src
> - -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray
> - -Inumpy/core/src/umath -Inumpy/core/include -c'
> gcc: numpy/core/src/multiarray/multiarraymodule_onefile.c
> numpy/core/src/multiarray/multiarraymodule_onefile.c:10:25: error:
> scalartypes.c: No such file or directory
> numpy/core/src/multiarray/multiarraymodule_onefile.c:14:24: error:
> arraytypes.c: No such file or directory
> In file included from
> numpy/core/src/multiarray/multiarraymodule_onefile.c:35:
> numpy/core/src/multiarray/conversion_utils.c: In function
> 'PyArray_PyIntAsInt':
> numpy/core/src/multiarray/conversion_utils.c:378: error: 'INT_Descr'
> undeclared (first use in this function)
> numpy/core/src/multiarray/conversion_utils.c:378: error: (Each
> undeclared identifier is reported only once
> numpy/core/src/multiarray/conversion_utils.c:378: error: for each
> function it appears in.)
> numpy/core/src/multiarray/conversion_utils.c: In function
> 'PyArray_PyIntAsIntp':
> numpy/core/src/multiarray/conversion_utils.c:467: error: 'LONG_Descr'
> undeclared (first use in this function)
> numpy/core/src/multiarray/multiarraymodule_onefile.c:38:20: error:
> nditer.c: No such file or directory
> numpy/core/src/multiarray/multiarraymodule_onefile.c:40:36: error:
> lowlevel_strided_loops.c: No such file or directory
> numpy/core/src/multiarray/multiarraymodule_onefile.c:42:20: error:
> einsum.c: No such file or directory
> numpy/core/src/multiarray/multiarraymodule_onefile.c:10:25: error:
> scalartypes.c: No such file or directory
> numpy/core/src/multiarray/multiarraymodule_onefile.c:14:24: error:
> arraytypes.c: No such file or directory
> In file included from
> numpy/core/src/multiarray/multiarraymodule_onefile.c:35:
> numpy/core/src/multiarray/conversion_utils.c: In function
> 'PyArray_PyIntAsInt':
> numpy/core/src/multiarray/conversion_utils.c:378: error: 'INT_Descr'
> undeclared (first use in this function)
> numpy/core/src/multiarray/conversion_utils.c:378: error: (Each
> undeclared identifier is reported only once
> numpy/core/src/multiarray/conversion_utils.c:378: error: for each
> function it appears in.)
> numpy/core/src/multiarray/conversion_utils.c: In function
> 'PyArray_PyIntAsIntp':
> numpy/core/src/multiarray/conversion_utils.c:467: error: 'LONG_Descr'
> undeclared (first use in this function)
> numpy/core/src/multiarray/multiarraymodule_onefile.c:38:20: error:
> nditer.c: No such file or directory
> numpy/core/src/multiarray/multiarraymodule_onefile.c:40:36: error:
> lowlevel_strided_loops.c: No such file or directory
> numpy/core/src/multiarray/multiarraymodule_onefile.c:42:20: error:
> einsum.c: No such file or directory
> error: Command "gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
> - -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> - --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC
> - -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> - -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
> - -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Inumpy/core/include
> - -Ibuild/src.linux-x86_64-2.6/numpy/core/include/numpy
> - -I/usr/lib64/python2.6/site-packages/numpy/core/include
> - -I/usr/include/python2.6 -Inumpy/core/src/private -Inumpy/core/src
> - -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray
> - -Inumpy/core/src/umath -Inumpy/core/include -c
> numpy/core/src/multiarray/multiarraymodule_onefile.c -o
>
> build/temp.linux-x86_64-2.6/numpy/core/src/multiarray/multiarraymodule_onefile.o"
> failed with exit status 1
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.14 (GNU/Linux)
> Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJPO6UoAAoJEBdvyODiyJI4fwQH+wb3n69uJnSKN8upAkIIBykZ
> W1vUuvqz1M8Dzm3/drkn01NtDC5eCW2D2ncO97J/7HW4HB4NRDxfB3F/p+9or6Vk
> 4qv/HGeCTNXaGf5GKidfGXyo2CzWRj/uK00lCC8roUfrQo5+cgL/7hXYE4Z59QK/
> S4NXrv7FU9pBysbpMJJ9O47yPfh2Z3qKKItvhiZM5jr5K91pMeDtIAB5HsJDV/4t
> 1gEGlZh/DCVZwQ8yWc8iDnk1uWVK5E+cGvwxBw9xA8TNTNxvqtSRaKlQhMhzyaZl
> vpd9vYiXijbR7iHjOhoriw/suI7RyX/oQl9AjvM+AQ4NoB/22xJqbqlXDSNcWXE=
> =PI/y
> -----END PGP SIGNATURE-----
>

Hmm... since it tells you the gcc command line that fails, I'd suggest to
copy / paste it in a shell prompt, run it, analyze the error, and figure
out how to fix the command line.
It looks suspicious though that you're having so much trouble... Have you
tried without the fcompiler option like Bruce suggested?

-=- Olivier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120215/592e6fd2/attachment.html 


More information about the NumPy-Discussion mailing list