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

Installing GSL

Procedure

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

    tar xvf gsl-2.5.0.tar.gz

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

    cd gsl-2.5.0

  4. Run the following commands to perform compilation and installation:

    mkdir build

    cd build

    ../configure --prefix=/path/to/GSL

    make -j 32

    make install

  5. Run the following commands to set GSL environment variables:

    export LIBRARY_PATH=/path/to/GSL/lib:$LIBRARY_PATH

    export LD_LIBRARY_PATH=/path/to/GSL/lib:$LD_LIBRARY_PATH

    export CPLUS_INCLUDE_PATH=/path/to/GSL/include:$CPLUS_INCLUDE_PATH

    export C_INCLUDE_PATH=/path/to/GSL/include:$C_INCLUDE_PATH