以上路径中,空参数代表当前路径。
command not foundexport PATH=$PATH:/path/to/your/command
或者命令前面加上绝对路径。
LIBRARY_PATH,可以正确编译,但是执行时出现如下错误:./a.out: error while loading shared libraries: libhelp.so: cannot open shared object file: No such file or directory
是因为没有设置LD_LIBRARY_PATH,解决办法如下:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/your/solibrary
参考: