This thread is locked.Only browsing is available.
Top Page > Browsing
prallel installation
Date: 2015/03/18 18:38
Name: Haider Abbas   <haiderabbasphy@gmail.com>

Dear All,

I want to install openmx on my ubuntu machine. I am using the make file option
given in manual which I think is most suitable to my system.

CC=mpicc -O3 -ffast-math -fopenmp -I/usr/local/fftw3/include -I/opt/acml5.3.1/gfortran64_int64/include
FC=mpif90 -O3 -ffast-math -fopenmp -I/opt/acml5.3.1/gfortran64_int64/include
LIB= -L/usr/local/fftw3/lib -lfftw3 /opt/acml5.3.1/gfortran64_int64/lib/libacml.a -L/usr/lib -lgfortran

with these option I get the error

/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
make: *** [openmx] Error 1
lion@lion-ThinkCentre-E73:~/openmx3.7/source$


could you please help me to overcome this problem.
Thanking in advance
with regards
Haider Abbas

メンテ
Page: [1]

Re: prallel installation ( No.1 )
Date: 2015/03/25 01:03
Name: sungwoojang


Hi I see the problem is no lgfortran library in your path "/usr/lib" like below your setting.

/usr/bin/ld: cannot find -lgfortran

I suggest that the path of below be "/usr/lib64" or "/usr/local/lib64".
In general, the library path of Linux OS is "/usr/lib64" or "/usr/local/lib64" on 64bit operating systems. The "/usr/lib" path is for the 32bit library.

-L/usr/lib -lgfortran -> -L/usr/lib64 -lgfortran



メンテ

Page: [1]