I am trying to install Lammps on Ubuntu 22.04 and each time I try to “make mpi” or “make serial” I get this error message. Any suggestions?
Gathering installed package information (may take a little while)
make[1]: Entering directory ‘/home/saeid/lammps/lammps-23Jun2022/src’
Gathering git version information
make[1]: Leaving directory ‘/home/saeid/lammps/lammps-23Jun2022/src’
Compiling LAMMPS for machine mpi
make[1]: Entering directory ‘/home/saeid/lammps/lammps-23Jun2022/src/Obj_mpi’
Makefile.package.settings:8: …/…/lib/electrode/Makefile.lammps: No such file or directory
make[1]: *** No rule to make target ‘…/…/lib/electrode/Makefile.lammps’. Stop.
make[1]: Leaving directory ‘/home/saeid/lammps/lammps-23Jun2022/src/Obj_mpi’
make[1]: Entering directory ‘/home/saeid/lammps/lammps-23Jun2022/src/Obj_mpi’
Makefile.package.settings:8: …/…/lib/electrode/Makefile.lammps: No such file or directory
make[1]: *** No rule to make target ‘…/…/lib/electrode/Makefile.lammps’. Stop.
make[1]: Leaving directory ‘/home/saeid/lammps/lammps-23Jun2022/src/Obj_mpi’
make: *** [Makefile:393: mpi] Error 2
I Downloaded the source code from your website, then opened the “src” folder and for example “make yes-python”, after that entered the “make mpi” and got this error.
And I don’t know how to compile with CMake. If possible please help me to do this.
Thanks.
It crucially matters, which of these “make yes-xxx” commands you did. Some of them require additional steps. This is all explained in detail here: 3. Build LAMMPS — LAMMPS documentation
To confirm, I just downloaded the source , extracted it, changed to the src folder and typed “make mpi” and there is no error. Same for “make serial”.
So the reason for the error is that you did do some commands without fully following the documentation. Details matter!
We cannot help you if you don’t follow the documentation. That is why we write documentation in the first place.
This is a verydifferent error from the one you reported originally and indicates that something is not correct with your MPI library installation. Which packages did you install to for it?
I downloaded the source file from OPEN MPI website and installed that from manual. After that entered “ompi_info” but i couldn’t see anything and next entered this command:
That will install only the MPI runtime, not the headers and libraries required for compiling. For that you also need the -dev package in addition to the -bin package.