问题描述
执行进程出现如下错误,提示无法找到libnsl.so.2库
error while loading shared libraries: libnsl.so.2: cannot open shared object file: No such file or directory
解决方案
查看系统/lib/可以看到,确实没有libnsl.so.2这个库,所以我们只需要在系统打包的时候拷贝一份libnsl.so.2即可
ls /lib/libnsl
libnsl-2.28.so libnsl.so.1