|
我用 file 命令的时候,
出现这个错误:
file: error while loading shared libraries: libmagic.so.1: cannot open shared object file: No such file or directory
我设置 LD_LIBRARY_PATH=/usr/lib:/lib 后,就可以正常运行了
设置 LD_LIBRARY_PATH=/usr/lib 后,提示
file: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
我看了原来的RH系统,没有设置LD_LIBRARY_PATH,/etc/ld.so.conf也就只有一个 /usr/kerberos/lib,其他都没有的。
我想知道是什么错误造成这个现象的?能怎么解决?
非常感谢。 |
|