[lammps-users] LAMMPS install

Dear LAMMPS users,

I am having a problem installing LAMMPS for my intel machine running CentOS 4. I want to install a serial version that can utilize the Reax force field. I did the following steps

in lib/reax I ran make -f Makefile.ifort and I indeed get the libreax.a file
in src/STUBS I ran make and I indeed get the libmpi.a file
then in src I ran make serial

This runs for awhile but ends with the following error.
/usr/bin/ld: cannot find -lifcore
collect2: ld returned 1 exit status
make[1]: *** […/lmp_serial] Error 1
make[1]: Leaving directory `/usr/local/lammps/src/Obj_serial’
make: *** [serial] Error 2

My understanding is that the lifcore library is necessary when using C++ and Fortran code together and it should be available with the Ifort compiler. Does anyone have any suggestions for how to fix this problem? I thank you in advance for any help you can provide me with.

Jacob Harvey

Dear LAMMPS users,

I am having a problem installing LAMMPS for my intel machine running CentOS
4. I want to install a serial version that can utilize the Reax force field.
I did the following steps

in lib/reax I ran make -f Makefile.ifort and I indeed get the libreax.a file
in src/STUBS I ran make and I indeed get the libmpi.a file
then in src I ran make serial

This runs for awhile but ends with the following error.
/usr/bin/ld: cannot find -lifcore
collect2: ld returned 1 exit status
make[1]: *** [../lmp_serial] Error 1
make[1]: Leaving directory `/usr/local/lammps/src/Obj_serial'
make: *** [serial] Error 2

My understanding is that the lifcore library is necessary when using C++ and
Fortran code together and it should be available with the Ifort compiler.
Does anyone have any suggestions for how to fix this problem? I thank you in
advance for any help you can provide me with.

you have to adjust the makefile to tell the linker where to find the
libifcore library,
i.e. where your intel compiler installation is.

axel.

Axel,

Thank you for your help. I edited the “reax_SYSPATH =” line to be the location of the Ifort libraries and the compilation went perfectly. Thanks again helping me out on this!

Jacob