# Download tar.gz file from the cmake website. # Log in home directory and move the tar.gz file into the home directory. mkdir .cmake mv xxxxx.tar.gz .cmake cd .cmake tar zxvf xxxxx.tar.gz cd cmake-x.x.x ./bootstrap make # Open the .bashrc file, and add the two command at the last of the file. # export PATH=$HOME/.cmake/cmake-x.x.x/bin:$PATH # export LD_LIBRARY_PATH=$HOME/.Library/spglib/lib64:$LD_LIBRARY_PATH # Download spglib-x.x.x.tar.gz file from the spglib website. # Log in home directory and move the tar.gz file into the home directory. mkdir .Library mv xxxxx.tar.gz .Library cd .Library tar zxvf xxxxx.tar.gz mv spglib-x.x.x spglib cd spglib mkdir _build cd _build cmake -DCMAKE_INSTALL_PREFIX=.. .. cmake --build . cmake --install . --prefix ..