./getmytest
error while loading shared libraries: xxx.so: cannot open shared object file: No such file or directory
需要将环境变量export LD_LIBRARY_PATH=xxxxxx即可。
或者在Makefile中的-lxxx后面加上-Wl,-R dir
或在~/.bash_profile中加上export LD_LIBRARY_PATH=xxxxxx
./getmytest
error while loading shared libraries: xxx.so: cannot open shared object file: No such file or directory
需要将环境变量export LD_LIBRARY_PATH=xxxxxx即可。
或者在Makefile中的-lxxx后面加上-Wl,-R dir
或在~/.bash_profile中加上export LD_LIBRARY_PATH=xxxxxx