Re: Installation error on Fedora 17 ( No.1 ) |
- Date: 2012/12/28 07:03
- Name: Surender <surender_kumar@iitb.ac.in>
- Hi Wang,
Whenever you got errors like these
> /usr/bin/ld: cannot find -lfftw3 > /usr/bin/ld: cannot find -llapack > /usr/bin/ld: cannot find -lblas > /usr/bin/ld: cannot find -lg2c > /usr/bin/ld: cannot find -lI77
that means either the libraries are MISSING or installed in some NON-STANDARD locations. ld generally search /lib and /usr/lib for the libraries.
I guess you have installed the following x86_64 packages
lapack.x86_64, lapack-devel.x86_64 blas.x86_64, blas-devel.x86_64 fftw.x86_64, fftw-devel.x86_64
If YES then your libraries are in /usr/lib64 , you can also check it by running the following commands on terminal
cd /usr/lib64 ls | grep liblapack.so ==> output will be liblapack.so ls | grep libblas.so ==> output will be libblas.so ls | grep libfftw3.so ==> output will be libfftw3.so
Since above libraries are SHARED LIBRARIES (*.so), so you have to remove -static from LIB in your makefile. Also you MAY have to replace BOTH -lf77 and -lg2c if you got the following errors > /usr/bin/ld: cannot find -lg2c > /usr/bin/ld: cannot find -lI77
ADD -lgfortran to LIB variable in your makefile. Now go to the source directory and do a clean installation. It works for me (Fedora-15), but I am not sure about Fedora-17.
!!!!! NO HARMS IN TRYING !!!!!
Regards, Surender
|
|