[Numpy-discussion] Numpy Installation Problem on Redhat Linux

Hung-Hsuan Chen hhchen at psu.edu
Thu Jul 5 21:00:37 EDT 2012


Dear all,

I've built blas, lapack, and atlas libraries, as shown below.

$ ls ~/lib/atlas/lib/
libatlas.a  libcblas.a  libf77blas.a  liblapack.a  libptcblas.a  libptf77blas.a

The library location are specified by site.cfg file, as shown below.

[DEFAULT]
library_dirs = /home/username/lib/atlas/lib
include_dirs = /home/username/lib/atlas/include

[blas]
libraries = libf77blas, libcblas, libatlas

[lapack]
libraries = liblapack, libf77blas, libcblas, libatlas

I've tried to build numpy (version 1.6.2) by
$ python setup.py build --fcompiler=gnu

However, I got the following error message:
error: Command "/usr/bin/g77 -g -Wall -g -Wall -shared
build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/scipy/integrate/vodemodule.o
build/temp.linux-x86_64-2.6/build/src.linux-x86_64-2.6/fortranobject.o
-L/home/username/lib/ -L/usr/lib64 -Lbuild/temp.linux-x86_64-2.6
-lodepack -llinpack_lite -lmach -lblas -lpython2.6 -lg2c -o
build/lib.linux-x86_64-2.6/scipy/integrate/vode.so" failed with exit
status

I've searched internet for possible solutions whole day but don't have
any progress so far.  Anyone has any idea of how to fix this?  Thanks!



More information about the NumPy-Discussion mailing list