运行程序出现错误:
./uav: error while loading shared libraries: libpbc.so.1: cannot open shared object file: No such file or directory
添加环境变量可以解决问题:
首先使用命令确定路径:
locate libpbc.so.1
添加环境变量:
export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH"
运行程序即可成功
但是只能起作用1次(存疑),下次运行还要设置环境变量