我要评分
获取效率
正确性
完整性
易理解

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the Diamond installation package:

    tar -xvf diamond-2.0.4.tar.gz

  3. Run the following command to go to the directory generated after decompression:

    cd diamond-2.0.4

  4. Run the following commands to create a folder:

    mkdir build

  5. 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

  6. Run the following command to set environment variables:

    export PATH=/path/to/DIAMOND/bin:$PATH