开始之前必须先安装eqel,rpmfusion,rpmforge这些第三方yum源:安装请参考我的下面几篇文章。
http://blog.csdn.net/jackalfly/article/details/7572886
http://blog.csdn.net/jackalfly/article/details/7573398
http://blog.csdn.net/jackalfly/article/details/7594130
回归今天的问题,我在CentOS6.2装成功后,发现Rhythmbox无法播放mp3音乐文件,提示缺少相应的插件。而使用CentOS系统自带的yum无法安装插件,可能是因为版权的原因吧,具体请看我的博文:CentOS软件安装经验 。
下载其安装包 gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64.rpm。安装时提示缺少一堆的依赖库,而CentOS也不会自动下载。没办法,把那些依赖库一个个去谷歌上全部下载下来,再安装。
[root@flc ~]# rpm -Uvh ftp://fr2.rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64.rpm
Retrieving ftp://fr2.rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64.rpm
error: Failed dependencies:
liba52.so.0()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libdvdread.so.4()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libid3tag.so.0()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libmad.so.0()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libmp3lame.so.0()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libmpeg2.so.0()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libopencore-amrnb.so.0()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libopencore-amrwb.so.0()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
liborc-0.4.so.0()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libsidplay.so.1()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libtwolame.so.0()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
libx264.so.107()(64bit) is needed by gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
[root@flc ~]# rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/liba52_0-0.7.4-7.0.1.el6.x86_64.rpm
Retrieving ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/liba52_0-0.7.4-7.0.1.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.dOTxBS: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY
Preparing... ########################################### [100%]
1:liba52_0 ########################################### [100%]
[root@flc ~]# rpm -Uvh ftp://ftp.muug.mb.ca/mirror/centos/6.2/os/x86_64/Packages/libdvdread-4.1.4-0.2.svn1183.el6.x86_64.rpm
Retrieving ftp://ftp.muug.mb.ca/mirror/centos/6.2/os/x86_64/Packages/libdvdread-4.1.4-0.2.svn1183.el6.x86_64.rpm
Preparing... ########################################### [100%]
1:libdvdread ########################################### [100%]
[root@flc ~]# rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libid3tag-0.15.1b-7.el6.x86_64.rpm
Retrieving ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libid3tag-0.15.1b-7.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.yK0vkR: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY
Preparing... ########################################### [100%]
1:libid3tag ########################################### [100%]
[root@flc ~]# rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libmad0-0.15.1b-4.el6.x86_64.rpm
Retrieving ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libmad0-0.15.1b-4.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.E3KpFf: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY
Preparing... ########################################### [100%]
1:libmad0 ########################################### [100%]
[root@flc ~]# rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libmp3lame0-3.99.3-23.el6.x86_64.rpm
Retrieving ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libmp3lame0-3.99.3-23.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.uAnShm: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY
Preparing... ########################################### [100%]
1:libmp3lame0 ########################################### [100%]
[root@flc ~]# rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libmpeg2_0-0.5.1-5.el6.x86_64.rpm
Retrieving ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libmpeg2_0-0.5.1-5.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.SMZQwt: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY
Preparing... ########################################### [100%]
1:libmpeg2_0 ########################################### [100%]
[root@flc ~]# rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libopencore-amrnb0-0.1.3-1.el6.x86_64.rpm
Retrieving ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libopencore-amrnb0-0.1.3-1.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.FaHLhx: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY
Preparing... ########################################### [100%]
1:libopencore-amrnb0 ########################################### [100%]
[root@flc ~]# rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libopencore-amrwb0-0.1.3-1.el6.x86_64.rpm
Retrieving ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libopencore-amrwb0-0.1.3-1.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.RMBKyu: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY
Preparing... ########################################### [100%]
1:libopencore-amrwb0 ########################################### [100%]
[root@flc ~]# rpm -Uvh http://pkgrepo.linuxtech.net/el6/release/x86_64/liborc-0.4.14-1.el6.x86_64.rpm
Retrieving http://pkgrepo.linuxtech.net/el6/release/x86_64/liborc-0.4.14-1.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.Ek6d2g: Header V4 RSA/SHA1 Signature, key ID 5cc6587f: NOKEY
Preparing... ########################################### [100%]
1:liborc ########################################### [100%]
[root@flc ~]# rpm -Uvh ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el6/en/x86_64/dag/RPMS/libsidplay-1.36.60-1.el6.rf.x86_64.rpm
Retrieving ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el6/en/x86_64/dag/RPMS/libsidplay-1.36.60-1.el6.rf.x86_64.rpm
Preparing... ########################################### [100%]
1:libsidplay ########################################### [100%]
[root@flc ~]# rpm -Uvh http://pkgrepo.linuxtech.net/el6/release/i686/libtwolame-0.3.13-3.el6.i686.rpm
Retrieving http://pkgrepo.linuxtech.net/el6/release/i686/libtwolame-0.3.13-3.el6.i686.rpm
warning: /var/tmp/rpm-tmp.VZEdZ5: Header V4 RSA/SHA1 Signature, key ID 5cc6587f: NOKEY
error: Failed dependencies:
libc.so.6 is needed by libtwolame-0.3.13-3.el6.i686
libc.so.6(GLIBC_2.0) is needed by libtwolame-0.3.13-3.el6.i686
libc.so.6(GLIBC_2.1.3) is needed by libtwolame-0.3.13-3.el6.i686
libc.so.6(GLIBC_2.3.4) is needed by libtwolame-0.3.13-3.el6.i686
libm.so.6 is needed by libtwolame-0.3.13-3.el6.i686
libm.so.6(GLIBC_2.0) is needed by libtwolame-0.3.13-3.el6.i686
libm.so.6(GLIBC_2.1) is needed by libtwolame-0.3.13-3.el6.i686
[root@flc ~]# rpm -Uvh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/x264-0.0.0-0.4.20101111.el6.rf.x86_64.rpm
Retrieving http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/x264-0.0.0-0.4.20101111.el6.rf.x86_64.rpm
Preparing... ########################################### [100%]
1:x264 ########################################### [100%]
至此:等这些库都安装完毕后,再安装gstreamer-plugins-ugly,可能还会提示某些库要下载,系统会自动下载,会顺利安装成功。可以Music了。
rmvb:
[root@flc ~]# rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libfaad2-2.7-18.el6.x86_64.rpm
Retrieving ftp://ftp.pbone.net/mirror/atrpms.net/el6-x86_64/atrpms/stable/libfaad2-2.7-18.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.8Ya52g: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY
Preparing... ########################################### [100%]
1:libfaad2 ########################################### [100%]
[root@flc ~]# rpm -qf /usr/lib64/liba52.so.0.0.0
liba52_0-0.7.4-7.0.1.el6.x86_64
[root@flc ~]# rpm -q a52dec
package a52dec is not installed
[root@flc ~]# rpm -qpR ftp://mirror.switch.ch/pool/3/mirror/rpmfusion/free/el/updates/testing/5/x86_64/a52dec-0.7.4-13.el5.x86_64.rpm
/sbin/ldconfig
/sbin/ldconfig
liba52.so.0()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libm.so.6()(64bit)
libm.so.6(GLIBC_2.2.5)(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
[root@flc ~]# rpm -Uvh ftp://mirror.switch.ch/pool/3/mirror/rpmfusion/free/el/updates/testing/5/x86_64/a52dec-0.7.4-13.el5.x86_64.rpm
Retrieving ftp://mirror.switch.ch/pool/3/mirror/rpmfusion/free/el/updates/testing/5/x86_64/a52dec-0.7.4-13.el5.x86_64.rpm
Preparing... ########################################### [100%]
file /usr/lib64/liba52.so.0.0.0 from install of a52dec-0.7.4-13.el5.x86_64 conflicts with file from package liba52_0-0.7.4-7.0.1.el6.x86_64
[root@flc ~]# rpm -e liba52_0
error: Failed dependencies:
liba52.so.0()(64bit) is needed by (installed) gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64
[root@flc ~]# rpm -q gstreamer-plugins-ugly
gstreamer-plugins-ugly-0.10.16-2.el6.rf.x86_64