1.安装
-
1.下载gsl
Here -
2.安装
cd gsl-1.*
sudo ./configure --prefix=/usr/local/lib #安装在/usr/local/lib
sudo make
sudo make install
- 3.根目录添加配置文件
gedit ~/.bashrc &
在末尾加上下面配置,/usr/local/lib
#GSL
export PATH=$PATH:/usr/local/lib/bin
export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/lib/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/lib
export GSL_LD=/usr/local/lib/lib
2.更新lib菜单
这一步用sudo没有作用,直接su,输入密码进入root模式
# cat/etc/ld.so.conf
include ld.so.conf.d/*.conf
# echo "/usr/local/lib/lib" >> /etc/ld.so.conf
# ldconfig