库文件找不到
问题描述
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