解决 "error while loading shared libraries: libpng12.so.0: cannot
open shared object file: No such file or directory"问题
1.系统下找到这个文件输入: find / -name libpng12…so
列出来的东西中应该有:如/snap/core/12821/lib/x86_64-linux-gnu/libpng12.so.0
2. 在你要打开的同级目录下输入:export LD_LIBRARY_PATH=:/snap/core/12821/lib/x86_64-linux-gnu/libpng12.so.0,然后就ok了
解决“error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory”
1.解决方法同上 find / -name libmpfr.so.4
2.输入:export LD_LIBRARY_PATH=:/snap/core/12821/usr/lib/x86_64-linux-gnu, 就可已编译文件了