Installing Libint
Procedure
- Use PuTTY to log in to the server as the root user.
- Install the dependencies using the yum command.
yum install gmp-devel.aarch64 libudev* -y
- Create an installation directory.
mkdir -p /path/to/EXTRA mkdir -p /path/to/EXTRA/mathlib
- Decompress the Libint installation package.
tar -xvf libint-2.6.0.tar.gz
- Go to the directory generated after the decompression and perform the configuration.
cd libint-2.6.0 ./autogen.sh
- Create a build directory and switch to the directory.
mkdir build cd build
- Configure the environment variables.
export LDFLAGS="-L/path/to/GMP/gmp-6.2/lib -L/path/to/BOOST/boost_1_72/lib" export CPPFLAGS="-I/path/to/BOOST/boost_1_72/include/ -I/path/to/GMP/gmp-6.2/include"
- Perform the configuration.
../configure CXX=mpicxx --enable-eri=1 --enable-eri2=1 --enable-eri3=1 --with-max-am=4 --with-eri-max-am=4,3 --with-eri2-max-am=6,5 --with-eri3-max-am=6,5 --with-opt-am=3 --enable-generic-code --disable-unrolling --with-libint-exportdir=libint_cp2k_lmax4
- Perform the compilation.
make export
- Configure the environment variables.
export LDFLAGS="-L/path/to/GMP/lib -L/path/to/BOOST/lib" export CPPFLAGS="-I/path/to/BOOST/include/ -I/path/to/GMP/include"
- Decompress the libint_cp2k_lmax4.tgz installation package.
tar -xvf libint-v2.6.0-cp2k-lmax-4.tgz cd libint-v2.6.0-cp2k-lmax-4
- Perform the configuration.
./configure --prefix=/path/to/EXTRA/LIBINT CC=mpicc CXX=mpicxx FC=mpifort --enable-fortran --enable-shared
- Perform the installation.
make -j 32 make install
Parent topic: Configuring the Compilation Environment