I’m trying to install LAMMPS 2011 but was stuck with this error
I have do the changes to compile it will gfortran/g++ and with mpicc
/usr/bin/ld: cannot find -lifcore
collect2: ld returned 1 exit status
please read the installation instructions again.
they discuss that you have to link to a fortran
runtime library when you include packages with
fortran libraries. if you compile those with
gfortran, you cannot use -lifcore, which is a
library that is part of an intel compiler installation.
instead you'll have to link with -lgfortran instead.
My system is based on Centos 5 and have configured fftw and openmpi with it
I have done the following prior to the compilation. By chance do you know where I can change the parameter for -lifcore or any related parameter with ifort? I cant locate it in Makefile.linux
In the current version, any library under lib, e.g. lib/meam,
which are the only ones that have Fortran code (some of them),
has a Makefile.lammps in it, e.g. lib/meam/Makefile.lammps.
That is the file where you specify additional libs like -lifcore.