天天看點

【Linux】cannot open shared object file: No such file or directory解決方法

問題:完整錯誤資訊:

./mgw: error while loading shared libraries: libxxx.so: cannot open shared object file: No such file or directory

方法:直接在運作./mgw的.sh腳本中添加下面語句即可:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/path
           

參考:

https://blog.csdn.net/qc530167365/article/details/91491851

繼續閱讀