Ubuntu 编译程序遇到的错误

错误:

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

找不到之前安装的动态连接库

解决办法:

环境变量时告诉系统动态连接库的位置
需要建立一个建个LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib

你可能感兴趣的:(Ubuntu 编译程序遇到的错误)