Problems compiling LAMMPS with MEAM potential


I am facing problems while trying to compile the LAMMPS with MEAM potential on my Mac. These are

the steps that I followed so far:

1.Downloaded the latest tarball from the LAMMPS website (lammps-12Dec18.tar) and extracted it into my home directory.

2.Changed to /lammps-12Dec18/lib/meam directory and built the meam library using this step:

make -f Makefile.gfortran

3.Change to the /lammps-12Dec18/src directory and executed these


make yes-manybody

make yes-meam

make mpi

But at the end of compiling, I get this error message:

ld: warning: directory not found for option ‘-L/Users/meghnathjaishi/use/local/lib’

ld: library not found for -lgfortran

clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

make[1]: *** […/lmp_mpi] Error 1

make: *** [mpi] Error 2

I tried to do everything from going over through the Lammps manual to all the previous lammps archived messages but nothing helped so far. Could anybody please help me solving this problem.

Thank you


Meghnath Jaishi

MEAM is obsolete. Please use USER-MEAMC, which does not require any compilation of fortran code.


Thank you for the invaluable suggestion, I could finally compile Lammps with the USER-MEAMC potential.

Best Regards,

Meghnath Jaishi