This thread is locked.Only browsing is available.
Top Page > Browsing
Installation error on Fedora 17
Date: 2012/12/08 03:42
Name: Wang daobin   <cougarlz@gmail.com>

Dear Professor:

I want to install openmx 3.6 on 64bit-version Fedora 17. 64bit- and 32bit-version fftw3,lapack and blas have been installed. ALL devel packages also have been installed. CC and LIB are set as following:
CC = gcc -O3 -Dnompi -Dnoomp -Dblaswrap -I/usr/local/include -I/home/ozaki/include
LIB = -L/usr/local/lib -lfftw3 -llapack -lblas -lg2c -lI77 -static

When I go into ./source/ directory and make install, a error message display as following:
......................
-091216/source/sbt/eri_sbt.o ./liberi-091216/source/sbt/log/eri_fsbt.o ./liberi-091216/source/sbt/log/eri_logfsbt.o ./liberi-091216/source/sbt/linear/eri_linfsbt.o -L/usr/local/lib -lfftw3 -llapack -lblas -lg2c -lI77 -static -lm -o openmx
/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
collect2: error: ld returned 1 exit status
make: *** [openmx] Error 1

Can you help me to fix this error? Thank you!
メンテ
Page: [1]

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
メンテ

Page: [1]