Problem on installing Lammps with cmake on cluster user directory

Dear all,

Motivated with my former experience on using cmake to install LAMMPS on a PC computer, I followed commands to install LAMMPS on my cluster’s user directory. I used this command:

cmake -D CMAKE_INSTALL_PREFIX= /share/myuser/lammps/installedlammps/ ../cmake

And unfortunately get the following error:

– Running check for auto-generated files from make-based build system
CMake Error at Modules/LAMMPSUtils.cmake:75 (message):

########################################################################

Found header file(s) generated by the make-based build system

Please run

make -C /share/myuser/lammps/src purge

to remove

########################################################################
Call Stack (most recent call first):
CMakeLists.txt:79 (check_for_autogen_files)

– Configuring incomplete, errors occurred!
See also “/share/myuser/lammps/build/CMakeFiles/CMakeOutput.log”.

My try:
I loaded essential modules, git, mpi, openmpi. But it was not helpful. I got the same error.

Any comments will be appreciated
modules

The error message is quite self-explanatory and provides a suggestion for how to avoid it.
There isn’t much more to recommend.

1 Like