Linux的各种支持时分的让人头疼。。。Centos,个人感觉是做得比较好的…
但不通过yum安装,直接安装的话,支持问题就来了。。。及比如说firefox吧。。。
解决一个又一个。。。
[root@srv1 ~]# firefox firefox: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory [root@srv1 ~]# firefox XPCOMGlueLoad error for file /usr/local/firefox/libxul.so: libXrender.so.1: cannot open shared object file: No such file or directory Couldn't load XPCOM. [root@srv1 ~]# firefox XPCOMGlueLoad error for file /usr/local/firefox/libxul.so: libasound.so.2: cannot open shared object file: No such file or directory Couldn't load XPCOM.
如果一个错误一个错误的去问谷歌或是度娘,那也太浪费时间了。。。于是,我们就可以利用 yum whatprovides [缺失的文件] 来快速解决了
例如:
# yum whatprovides libstdc++.so.6
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.xmission.com
* extras: mirrors.xmission.com
* updates: mirrors.xmission.com
libstdc++-4.4.7-4.el6.i686 : GNU Standard C++ Library
Repo : base
Matched from:
Other : libstdc++.so.6
上面红色的就是这个包中提供缺失的libstdc++.so.6
,然后yum install libstdc++-4.4.7-4.el6.i686
即可解决,其它的错误以此类推
转载请注明:神奇海域 » yum whatprovides 查找哪个包提供缺失的文件