[Numpy-discussion] Linux numpy 1.0.1 install failed
Gong, Shawn (Contractor)
Shawn.Gong at drdc-rddc.gc.ca
Fri May 18 15:50:15 EDT 2007
Hi List,
I am trying to install numpy 1.0.1 on Linux. (Numeric and numarray have been fine)
System info: Redhat Linux kernel 2.4 with gcc 3.2.3 but no separate FORTRAN compiler.
It has a Fortran 77 compiler (the one which comes as part of gcc)
My questions:
1) install can't find ATLAS (*.a) that I specify.
Do they have to be *.so files? Do the *.a file sizes look right?
Where can I get libblas.so liblapack.so files?
2) do I need a FORTRAN compiler? Will Fortran 77 compiler do?
Thanks,
Shawn
Followings are error messages:
-----------------------------
When I type "python setup.py install > numpy.out", I get:
Screen display as follows:
-----------------------------
Running from numpy source directory.
/home/sgong/dev/numpy-1.0.1/numpy/distutils/system_info.py:934:
UserWarning:
*********************************************************************
Lapack library (from ATLAS) is probably incomplete:
size of /usr/lib/liblapack.so is 3676k (expected >4000k)
Follow the instructions in the KNOWN PROBLEMS section of the file
numpy/INSTALL.txt.
*********************************************************************
I then asked system admin people to install a complete ATLAS onto /usr/local/lib/atlas
-rw-r--r-- 1 root root 8049172 May 15 08:49 libatlas.a
-rw-r--r-- 1 root root 279016 May 15 08:49 libcblas.a
-rw-r--r-- 1 root root 342062 May 15 08:49 libf77blas.a
-rw-r--r-- 1 root root 5314268 May 15 08:49 liblapack.a
-rw-r--r-- 1 root root 279590 May 15 08:49 libptcblas.a
-rw-r--r-- 1 root root 342430 May 15 08:49 libptf77blas.a
-rw-r--r-- 1 root root 320316 May 15 08:49 libtstatlas.a
System admin people said that he doesn't know how to get/install *.so. He can only get *.a library.
I also changed site.cfg to enter
"library_dirs = /usr/local/lib/atlas/"
Please find the numpy.out.txt file. Some of the lines are:
--------------------------------
F2PY Version 2_3473
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in /home/sgong/dev/dist/lib
libraries mkl,vml,guide not found in /usr/local/lib
libraries mkl,vml,guide not found in /usr/lib
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack,blas not found in /usr/local/lib/atlas
libraries lapack,blas not found in /usr/local/lib/atlas/
libraries lapack,blas not found in /home/sgong/dev/dist/lib
libraries lapack,blas not found in /usr/local/lib/atlas
libraries lapack,blas not found in /usr/local/lib
Setting PTATLAS=ATLAS
Setting PTATLAS=ATLAS
FOUND:
libraries = ['lapack', 'blas']
library_dirs = ['/usr/lib']
language = c
Could not locate executable gfortran
Could not locate executable f95
customize GnuFCompiler
customize GnuFCompiler
customize GnuFCompiler using config
compiling '_configtest.c':
/* This file is generated from numpy_distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
ATL_buildinfo();
return 0;
}
C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
compile options: '-c'
gcc: _configtest.c
gcc _configtest.o -L/usr/lib -llapack -lblas -o _configtest
_configtest.o(.text+0x15): In function `main':
/home/sgong/dev/numpy-1.0.1/_configtest.c:5: undefined reference to `ATL_buildinfo'
/usr/lib/liblapack.so: undefined reference to `e_wsfe'
/usr/lib/liblapack.so: undefined reference to `z_abs'
/usr/lib/liblapack.so: undefined reference to `c_sqrt'
/usr/lib/liblapack.so: undefined reference to `s_cmp'
/usr/lib/liblapack.so: undefined reference to `z_exp'
/usr/lib/liblapack.so: undefined reference to `c_exp'
/usr/lib/liblapack.so: undefined reference to `etime_'
/usr/lib/liblapack.so: undefined reference to `do_fio'
/usr/lib/liblapack.so: undefined reference to `z_sqrt'
/usr/lib/liblapack.so: undefined reference to `s_cat'
/usr/lib/liblapack.so: undefined reference to `s_stop'
/usr/lib/liblapack.so: undefined reference to `c_abs'
/usr/lib/liblapack.so: undefined reference to `s_wsfe'
/usr/lib/liblapack.so: undefined reference to `s_copy'
collect2: ld returned 1 exit status
_configtest.o(.text+0x15): In function `main':
/home/sgong/dev/numpy-1.0.1/_configtest.c:5: undefined reference to `ATL_buildinfo'
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: numpy.out.txt
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070518/d6658cc0/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libs.txt
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070518/d6658cc0/attachment-0001.txt>
More information about the NumPy-Discussion
mailing list