[lammps-users] Problem to build with Cmake using CLI

Hello everyone
I am facing a problem while building the LAMMPS using CMake. In the empty build directory when I try to run “cmake …/cmake/”
it shows error
"-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:17 (project):
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
"
Please recommend me a path for this.

You need to install a c++ compiler to be able to compile software from source. CMake cannot find any on your system.

Hello Everyone

I am a very beginner to use the LAMMPS for my PhD work. I have a querry, I have compiled lmp using CMake. Now I want to launch the job but I don’t know what is the name executable set by CMake by default while compiling. so when I try to run the job after compiling it shows the following error(lmp_mpi was is name shown on the website).
mpirun -np 2 lmp_mpi -in in.dipole

Hi,

as stated by mpirun, no executable named lmp is installed or can be found in your path. You can check the name of the executable present in the compilation directory and follow the installation procedure here:

You can read section 3.1.2 until the end to learn how to install the executable.

Regards,

Germain.