Hi, you have a problem with your Ubuntu installation, not with numpy.
Matthieu 2007/5/13, dmitrey <[EMAIL PROTECTED]>:
Stefan van der Walt wrote: > On Sun, May 13, 2007 at 06:19:30PM +0300, dmitrey wrote: > >> Is it possible somehow to speedup numpy 1.0.3 appearing in Linux update >> channels? (as for me I'm interested in Ubuntu/Kubuntu, currently there >> is v 1.0.1) >> I tried to compile numpy 1.0.2, but, as well as in Octave compiling, it >> failed because "c compiler can't create executable". gcc reinstallation >> didn't help, other c compilers are absent in update channel (I had seen >> only tcc, but I'm sure it will not help, and it (I mean trying to >> install other C compilers) requires too much efforts). >> > > Many people here are compiling numpy fine under Ubuntu. Do you have > write permissions to the output directory? What is the compiler error > given? > > Cheers > Stéfan > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion@scipy.org > http://projects.scipy.org/mailman/listinfo/numpy-discussion > Sorry, I meant compiling Python2.5 and Octave, not numpy & Octave Python2.5 is already present (in Ubuntu 7.04), but I tried to compile and install it from sources because numpy compilation failed with (I have gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4), compiling as root) ... ... C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC compile options: '-I/usr/include/python2.5 -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c' gcc: _configtest.c In file included from /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include/syslimits.h:7, from /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include/limits.h:11, from /usr/include/python2.5/Python.h:18, from _configtest.c:2: /usr/lib/gcc/x86_64-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory In file included from _configtest.c:2: /usr/include/python2.5/Python.h:32:19: error: stdio.h: No such file or directory /usr/include/python2.5/Python.h:34:5: error: #error "Python.h requires that stdio.h define NULL." /usr/include/python2.5/Python.h:37:20: error: string.h: No such file or directory /usr/include/python2.5/Python.h:39:19: error: errno.h: No such file or directory /usr/include/python2.5/Python.h:41:20: error: stdlib.h: No such file or directory /usr/include/python2.5/Python.h:43:20: error: unistd.h: No such file or directory /usr/include/python2.5/Python.h:55:20: error: assert.h: No such file or directory In file included from /usr/include/python2.5/Python.h:57, from _configtest.c:2: /usr/include/python2.5/pyport.h:7:20: error: stdint.h: No such file or directory In file included from /usr/include/python2.5/Python.h:57, from _configtest.c:2: /usr/include/python2.5/pyport.h:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Py_uintptr_t' /usr/include/python2.5/pyport.h:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Py_intptr_t' /usr/include/python2.5/pyport.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Py_ssize_t' /usr/include/python2.5/pyport.h:204:76: error: math.h: No such file or directory /usr/include/python2.5/pyport.h:211:22: error: sys/time.h: No such file or directory /usr/include/python2.5/pyport.h:212:18: error: time.h: No such file or directory /usr/include/python2.5/pyport.h:230:24: error: sys/select.h: No such file or directory /usr/include/python2.5/pyport.h:269:22: error: sys/stat.h: No such file or directory In file included from /usr/include/python2.5/Python.h:76, from _configtest.c:2: /usr/include/python2.5/pymem.h:50: warning: parameter names (without types) in function declaration /usr/include/python2.5/pymem.h:51: error: expected declaration specifiers or '...' before 'size_t' In file included from /usr/include/python2.5/Python.h:78, from _configtest.c:2: /usr/include/python2.5/object.h:104: error: expected specifier-qualifier-list before 'Py_ssize_t' /usr/include/python2.5/object.h:108: error: expected specifier-qualifier-list before 'Py_ssize_t' /usr/include/python2.5/object.h:131: error: expected declaration specifiers or '...' before '*' token /usr/include/python2.5/object.h:131: warning: type defaults to 'int' in declaration of 'Py_ssize_t' /usr/include/python2.5/object.h:131: error: 'Py_ssize_t' declared as function returning a function /usr/include/python2.5/object.h:131: warning: function declaration isn't a prototype ................. (etc,etc) and here is a part of python2.5 compilation log: gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4) configure:2093: $? = 0 configure:2095: gcc -V </dev/null >&5 gcc: '-V' option must have argument configure:2098: $? = 1 configure:2121: checking for C compiler default output file name configure:2124: gcc conftest.c >&5 /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status configure:2127: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define _GNU_SOURCE 1 | #define _NETBSD_SOURCE 1 | #define __BSD_VISIBLE 1 | #define _BSD_TYPES 1 | #define _XOPEN_SOURCE 600 | #define _XOPEN_SOURCE_EXTENDED 1 | #define _POSIX_C_SOURCE 200112L | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2166: error: C compiler cannot create executables See `config.log' for more details. D. _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion