在rhel6.2 64位系統,通過原始碼包安裝,編譯時disable各種選項好不容易通過後,始終無法make成功,google後初步判斷應該是gcc4.4的bug,打了補丁也無效。最後通過編譯rpm原始碼包成功安裝。
32位系統:
64位系統:
[root@rhel6 ~]# rpm -ivh stardict-3.0.1-22.puias6.src.rpmwarning: stardict-3.0.1-22.puias6.src.rpm: header v3 rsa/sha256 signature, key id 41a40948: nokey
1:stardict warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
[root@rhel6 ~]# cd rpmbuild/specs
[root@rhel6 specs]# cat stardict.spec | grep -v "#" | grep requires:
requires: enchant, espeak, gucharmap >= 2.22.1, libbonobo >= 2.2.0, libgnome >= 2.2.0, libgnomeui >= 2.2.0, libsigc++20 >= 2.0.17
buildrequires: autoconf, automake, libtool
buildrequires: desktop-file-utils, enchant-devel, gettext, intltool, libgnomeui-devel >= 2.2.0, libsigc++20-devel, libtool, perl-xml-parser, scrollkeeper
buildrequires: gucharmap-devel >= 2.22.1
[root@rhel6 specs]# rpm -ba stardict.spec
//若編譯時出現以上錯誤,則通過匯入pgk_config的環境變數解決
[root@rhel6 specs]# export pgk_config=/usr/bin/pkg-config
[root@rhel6 specs]# rpm -ba stardict.spec
[root@rhel6 specs]# cd ../rpms/x86_64/
[root@rhel6 x86_64]# ls
stardict-3.0.1-22.el6.x86_64.rpm
stardict-debuginfo-3.0.1-22.el6.x86_64.rpm
[root@rhel6 x86_64]# rpm -ivh stardict-3.0.1-22.el6.x86_64.rpm
這時候在附件裡面已經可以啟動星際譯王了。不過現在只能聯網才能使用,以下開始新增字典:
字典可以在
[root@rhel6 ~]# ls /usr/share/stardict/dic/
stardict-hanyuchengyucidian-2.4.2 stardict-kdic-computer-gb-2.4.2 stardict-ncce-ce-2.4.2
stardict-hycihai-2.4.2 stardict-langdao-ec-gb-2.4.2 stardict-ncce-ec-2.4.2
RHEL 6 2 安裝步驟
1.配置bios網路啟動,自動從dhcp獲取ip,載入image rhel6.2 不能在文字模式下安裝,只能通過vnc遠端安裝 說是為了避免文字模式下不能修改分割槽 2.預設情況下,軟體包非常少。如果後續要安裝的話,需要用yum mount t nfs server iso mnt mount o ...
RHEL 6 2配置本地yum源
一 掛載本地光碟到系統 把rhel6.2安裝光碟放入光碟機,在終端命令列下操作 mkdir media rhel 新建掛載目錄 mount dev cdrom media rhel 掛載光碟到 media rhel目錄下 cd media rhel 進入掛載目錄 ls 檢視掛載目錄,光碟掛載成功 二...
RHEL 6 2配置本地yum源
一 掛載本地光碟到系統 把rhel6.2安裝光碟放入光碟機,在終端命令列下操作 mkdir media rhel 新建掛載目錄 mount dev cdrom media rhel 掛載光碟到 media rhel目錄下 cd media rhel 進入掛載目錄 ls 檢視掛載目錄,光碟掛載成功 二...