RedHat FC5安裝xmms

space6212發表於2019-07-20

xmms是linux一個優秀的MP3播放器。今天在RedHat FC5安裝xmms,真是一波三折啊。中間遇到了很多問題,花了幾個小時才裝上,把這個痛苦的過程記錄一下。


一、下載軟體
下載地址是:


二、解壓
tar zxvf xmms-1.2.10.tar.gz

三、編譯安裝
1、
[root@suk xmms-1.2.10]# ./configure
.....
編譯到一半的時候會報下面的錯誤:

”checking for GLIB - version >= 1.2.2... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: *** GLIB >= 1.2.2 not installed - please install first ***”

查詢已經安裝的glib:
[root@suk xmms-1.2.10]# rpm -qa|grep glib
glibc-common-2.4-4
glib2-2.10.1-1
avahi-glib-0.6.9-3
glibc-kernheaders-3.0-5.2
glib2-devel-2.10.1-1
glibc-headers-2.4-4
glibc-2.4-4
glib-1.2.10-18.2.2
glibc-devel-2.4-4
dbus-glib-0.61-3
NetworkManager-glib-0.6.0-3
glib-java-0.2.3.0.20060301.rh1-1

可以看到,glib已經安裝,且版本比1.2.2高,但仍然報錯。
上google搜了半天,發現有一個帖子說還需要安裝glib-devel和gtk+-devel這兩個包。找出安裝盤,把這兩個包安裝上,這一步果然順利過去了。看來這一步的報錯資訊有問題。
注意:glib/gtk+的版本需要是1.2.x,如果版本是2.x,雖然比1.2.x高,但編譯也不能透過。

2、
[root@suk xmms-1.2.10]# make
本以為第一步順利過去,之後的不會再出問題。事與願違,在這一步還是出錯了:

ir.c:19: error: static declaration of 'keepGoing' follows non-static declaration
ir.h:53: error: previous declaration of 'keepGoing' was here
ir.c:22: error: static declaration of 'irapp_thread' follows non-static declaration
ir.h:52: error: previous declaration of 'irapp_thread' was here
make[3]: *** [ir.lo] 錯誤 1
make[3]: Leaving directory `/home/downloads/xmms-1.2.10/General/ir'
make[2]: *** [all-recursive] 錯誤 1
make[2]: Leaving directory `/home/downloads/xmms-1.2.10/General'
make[1]: *** [all-recursive] 錯誤 1
make[1]: Leaving directory `/home/downloads/xmms-1.2.10'
make: *** [all] 錯誤 2

還是透過google查到解決方法:
解決方法1:開啟./General/ir/ir.h 把
extern pthread_t irapp_thread;
extern gboolean keepGoing;
兩句註釋掉
解決方法2:用低版gcc
我選擇的是第一種方法,修改後先make clean,然後再./configure,make順利過去這一步。

3、
[root@suk xmms-1.2.10]# make install

這一步很順利,大功告成。


結論:不要輕信安裝過程中的出錯資訊,有事先google,不要放棄,問題總會解決的。

最後,貼一個解決xmms中文亂碼的方案。

第一步:禁用ID3V2標籤
首選項=>音訊輸入輸出外掛 選中 MPEG Layer 1/2/3 播放器 然後再點下面的 “配置 ” 切換到標題後選擇“禁用ID3V2標籤” => “確定”


第二步:選擇字型
我的是
引用:
(點選首選項的字型標籤,直接copy下面的就可以了)

播放清單:
-sony-*-*-*-*-*-16-*-*-*-*-*-iso8859-1,-*-*-*-*-*-*-16-*-*-*-*-*-gbk-0
把前面那兩個勾都打上。還有其它的字型設定如:
主視窗:
-sony-*-*-*-*-*-16-*-*-*-*-*-iso8859-1,-*-*-*-*-*-*-16-*-*-*-*-*-gbk-0



第三步:修改標題顯示:
很多貼子裡面都沒提到這一步!
在標題格式裡只填上 %f , 預設的好象是 %p-%t ,不要預設的

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/231499/viewspace-63783/,如需轉載,請註明出處,否則將追究法律責任。

相關文章