Relatively newer Linux user here, currently trying to install a library called spglib. Following some directions I found online, I have installed cmake, I unzip the install folder, then I perform:
cd spglib
mkdir _build
cd _build
cmake ..
make
make install
However, after this last command I get the following error:
[ 50%] Built target symspg_static
[100%] Built target symspg
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib64/libsymspg.so.2.0.1
CMake Error at cmake_install.cmake:52 (file):
file INSTALL cannot copy file
"/global/homes/f/fcoen/spglib/_build/libsymspg.so.2.0.1" to
"/usr/local/lib64/libsymspg.so.2.0.1": Permission denied.
I understand the issue is that I'm trying to write to a folder I don't have permission to on the supercomputer I'm using. From the research I've done, I need to change the target install directory, perhaps by including a prefix
variable in the Makefile
. However I've tried a bunch of different things, without any success, and have exhausted my ideas at the moment. My background is more physics than CS so feel pretty out of my wheelhouse here, any guidance on how to get this installation running would be super appreciated thanks.