缺少动态连接库.so--cannot open shared object file: No such file or directory
生活随笔
收集整理的這篇文章主要介紹了
缺少动态连接库.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
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.confadd?/where/you/install/lib
sudo?ldconfig轉載于:https://www.cnblogs.com/xiaoleiel/p/8295832.html
總結
以上是生活随笔為你收集整理的缺少动态连接库.so--cannot open shared object file: No such file or directory的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: spring代码异常捕获到logback
- 下一篇: 【转】Pycharm创建py文件时自定义