當我遇到(如下)

error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

找不到某個library,又不確定是那個套件(package)裡的

我們可以透過

yum provides libasound.so.2

找到它是那個套件,我們裝它就行了

Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror01.idc.hinet.net
 * epel: ftp.riken.jp
 * extras: mirror01.idc.hinet.net
 * updates: mirror01.idc.hinet.net
89 packages excluded due to repository priority protections
alsa-lib-1.0.22-3.el6.i686 : The Advanced Linux Sound Architecture (ALSA) library
Repo : base
Matched from:
Other : libasound.so.2

 

Related posts 相關文章
Fedora 將預設用 DNF 取代 YUM 作套件安裝管理
More...
yum安裝套件出現相容性問題
More...
yum指令用法
More...
CentOS 5環境下升級php至 5.3版本
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。