Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the Diamond installation package:
tar -xvf diamond-2.0.4.tar.gz
- Run the following command to go to the directory generated after decompression:
cd diamond-2.0.4
- Run the following commands to create a folder:
mkdir build
- Run the following commands to perform compilation and installation:
cd build
export CC=`which gcc`
export CXX=`which g++`
export FC=`which gfortran`
cmake -DCMAKE_INSTALL_PREFIX=/path/to/DIAMOND ../
make -j 16
make install
- Run the following command to set environment variables:
export PATH=/path/to/DIAMOND/bin:$PATH
Parent topic: Diamond 2.0.4 Porting Guide (CentOS 7.6)