linux运行时找不到动态链接库:error while loading shared libraries

error while loading shared libraries: libboost_thread.so.1.75.0: cannot open shared object file: No such file or directory

一.找到存放库文件的目录:

/media/acat/J/emeralddb/boost/stage/lib

二. 在家目录下的.bashrc文件中添如下内容:

export LD_LIBRARY_PATH=/media/acat/J/emeralddb/boost/stage/lib:$LD_LIBRARY_PATH

你可能感兴趣的:(Linux)