CMake Error at cmake_install.cmake:52 (file):
file INSTALL cannot copy file “/home/zonzalkoo/lammps/lammps/build/lmp” to
“/bin/lmp”: Permission denied.
and not make lammps-install
CMake Error at cmake_install.cmake:52 (file):
file INSTALL cannot copy file “/home/zonzalkoo/lammps/lammps/build/lmp” to
“/bin/lmp”: Permission denied.
and not make lammps-install
You must have changed CMAKE_INSTALL_PREFIX during your CMake configuration and set it to empty or “/”. That is not a good idea as this will try to install to folders where a) you have no permission (and for a good reason) and b) it will be very messy to remove. The default is “$HOME/.local” which is a folder where you will have permissions and putting LAMMPS in your PATH environment is just a small change away, if it is needed at all, since most recent Linux environments have $HOME/.local/bin
included in the default path.
Please note that this is not really a LAMMPS issue, but an issue of how you set up and maintain a Linux system and thus any further discussion should be done in a more suitable forum than here.