編譯號所需的so庫文件,如下幾種方式將其鏈接上便可
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
參考 https://www.cnblogs.com/smartvessel/archive/2011/01/21/1940868.htmlhtml