error while loading shared libraries: libgsl.so.23问题解决

刚刚手动编译安装gsl2.4,默认的链接库安装位置在/usr/local/lib ,头文件在/usr/local/include/gsl ,在qt中调用出现了error while loading shared libraries: libgsl.so.23 的提示,解决步骤如下:

(1)修改/etc/profile ,在最後面添加环境变量

export PATH=$PATH:/usr/local/lib

使环境变量生效

$ sudo source /etc/profile

(2)执行完前面步骤还是找不到,需要写入共享库缓存目录,执行下面命令

$ sudo ldconfig

qt上再进行编译就可以了

猜你喜欢

转载自blog.csdn.net/ouening/article/details/80510275
今日推荐