这个帖子记录一下ubuntu上的一个指令操作:
昨天在服务器上对一个程序进行编译,但提示没有动态链接库,提示如下:
error while loading shared libraries: libzmq.so.5: cannot open shared object file: No such file or directory
因为我不是root用户,所以我也没有办法在/usr/lib下添加自己的动态库,所以最后用了添加环境的解决办法,如下:
export LD_LIBRARY_PATH=/home/xxx/pc_installed/lib:$LD_LIBRARY_PATH
以上、