美文网首页
[11]缺少动态连接库.so--cannot open shar

[11]缺少动态连接库.so--cannot open shar

作者: 路西_ | 来源:发表于2019-01-18 11:29 被阅读0次

[11]缺少动态连接库.so--cannot open shared object file: No such file or directory

总结下来主要有3种方法:

1. 用ln将需要的so文件链接到/usr/lib或者/lib这两个默认的目录下边

ln -s /where/you/install/lib/*.so /usr/lib

sudo ldconfig

2.修改LD_LIBRARY_PATH

export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH

sudo ldconfig

3.修改/etc/ld.so.conf,然后刷新

vim /etc/ld.so.conf

add /where/you/install/lib

sudo ldconfig

相关文章

网友评论

      本文标题:[11]缺少动态连接库.so--cannot open shar

      本文链接:https://www.haomeiwen.com/subject/ejzgdqtx.html