库文件找不到

问题描述

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

解决方法

  • 先找到libboost_system.so位置
updatedb
locate libboost_system.so

假设发现其位置为/opt/airimos/libimos

  • 重新设置LD_LIBRARY_PATH
vim ~/.bash_profile
export LD_LIBRARY_PATH=/opt/airimos/libimos/:$LD_LIBRARY_PATH

source ~/.bash_profile

参考:
https://stackoverflow.com/questions/4581305/error-while-loading-shared-libraries-libboost-system-so-1-45-0-cannot-open-sha

posted @ 2018-12-27 14:44  岳麓丹枫  阅读(130)  评论(0编辑  收藏  举报