[Numpy-discussion] Numpy Installation Problem on Redhat Linux

Paul Anton Letnes paul.anton.letnes@gmail....
Thu Jul 5 23:42:39 CDT 2012


Hi,

are you sure that you want g77 and not gfortran? If you want gfortran, you should pass the
> --fcompiler=gnu95
flag to setup.py.

Which redhat version are you building on? (I don't know red hat well enough to comment, but perhaps someone else do...)

Paul

On 6. juli 2012, at 03:00, Hung-Hsuan Chen wrote:

> 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!
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list