[Numpy-discussion] Numpy Installation Problem on Redhat Linux

Hung-Hsuan Chen hhchen@psu....
Fri Jul 6 04:12:06 CDT 2012


Thank you for pointing this out.  Actually I tried both
--fcompiler=gnu95 and --fcompiler=gnu flags, but I got the same error
message.

As for the redhat version, I'm using Red Hat Enterprise Linux Server
release 6.3 (Santiago).

On Fri, Jul 6, 2012 at 12:42 AM, Paul Anton Letnes
<paul.anton.letnes@gmail.com> wrote:
> 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
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion


More information about the NumPy-Discussion mailing list