Facing problems with enabling potentials

hello guys,

I am trying to enable manybody and extra pair potentials in lammps and compiling everything with makefile… and using commands with make. And after trying run lammps input files I am getting a specific error.

You need to enable the packages, see 3.6. Include packages in build — LAMMPS documentation. In the /src directory:

make yes-manybody
make yes-extra-pair

I did it several times but I am still getting the same error

One alternative would be using cmake to see if it works :smiley:

It’s so easy that even I managed to build lammps correctly (no need for files of specific machines or anything).

So you are making the same mistake. Either you did not recompile LAMMPS after adding those packages, or there is a compilation error that you are ignoring, or you are not using the updated executable.

The functionality of adding packages is regularly and automatically tested for both build systems, so the problem has to be on your side. Lots of people compile custom LAMMPS executables all the time without problems.

I understand, i will try to recompile properly