mkdir -p /path/to/gsl
cd /path/to/gsl
wget http://mirrors.ustc.edu.cn/gnu/gsl/gsl-2.6.tar.gz
tar -zxvf gsl-2.6.tar.gz
cd gsl-2.6/
export CC=gcc CXX=g++ FC=gfortran ./configure --prefix=/path/to/gsl
make -j 16
make install
export PATH=/path/to/gsl/bin:$PATH export LD_LIBRARY_PATH=/path/to/gsl/lib:$LD_LIBRARY_PATH export INCLUDE=/path/to/gsl/include:$INCLUDE