[lammps-users] Problem with building with KSPACE

Dear Users:

I am having a problem installing the KSPACE package on LAMMPS. I used
cmake to compile and build lammps and could install other packages but I
am not able to install KSPACE. I am using ubuntu 18.04.1 and installed the
LAMMPS version on 06/06/2020.

I carried out the following commands to install KSPACE.

cmake --build . --target clean
cmake -D PKG_KSPACE=on ../cmake
cmake --build . --target install

The first two commands seemed to work fine. On running the third command
it went through 100% of building objects and then gave the error (last few

[ 98%] Building CXX object
[ 99%] Building CXX object
[ 99%] Linking CXX static library liblammps.a
[ 99%] Built target lammps
[100%] Building CXX object
make[2]: *** No rule to make target 'path', needed by 'lmp'. Stop.
CMakeFiles/Makefile2:1264: recipe for target 'CMakeFiles/lmp.dir/all' failed
make[1]: *** [CMakeFiles/lmp.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

I tried searching the forum for this error but could not find anything
useful. Can someone help me ?

Madhav Ranganathan

It looks like you downloaded a snapshot of LAMMPS from the development branch (aka master), as there is no release for June 6th, 2020. Those can break occasionally, so if you want to follow LAMMPS development, you should better use git to clone the repository and update it with “git pull” all the time. Nobody is likely going to spend any effort in trying to fix problems with such snapshots unless you report them (and they can be reproduced) for the most current snapshot.

Otherwise, I strongly recommend to download either a “patch” or a “stable” release of LAMMPS: https://github.com/lammps/lammps/releases

I cannot reproduce the issue with the current development snapshot, but your instructions are incomplete. Please try to reproduce this with a) the current version and b) report all steps starting from creating the build folder.