星際譯王是一個(gè)Linux下很好的翻譯軟件。
我的系統(tǒng)是centos6.2 32位版。本來(lái)在http://code.google.com/p/stardict-3/downloads/list 上下的源碼包安裝。結(jié)果每次無(wú)法./configure過(guò)去。提示
configure: error: Enchant library not found or too old. Use --disable-spell to build without spell plugin.
加上--disable-spell參數(shù)又出現(xiàn)新的錯(cuò)誤。網(wǎng)上方法都試了,一直未搞定。
后來(lái),找到了rpm包后很容易就裝好了。
1,下載地址(選擇 binary package,):
32位系統(tǒng):
http://pkgs.org/centos-6-rhel-6/naulinux-school-i386/stardict-3.0.2-1.el6.i686.rpm/download/
64位系統(tǒng):
http://pkgs.org/centos-6-rhel-6/puias-x86_64/stardict-3.0.1-22.puias6.x86_64.rpm/download/
2, 用yum安裝
yum localinstall stardict-3.0.2-1.el6.i686.rpm
注:我的安裝依賴包為:espeak-1.40.02-3.1.el6.i686.rpm。通過(guò)yum自動(dòng)解決。
其他軟件包依賴關(guān)系等問(wèn)題請(qǐng)查看:
http://pkgs.org/centos-6-rhel-6/naulinux-school-i386/stardict-3.0.2-1.el6.i686.rpm.html
這時(shí)候在附件里面已經(jīng)可以啟動(dòng)星際譯王了。只不過(guò)這時(shí)侯還只能聯(lián)網(wǎng)使用。斷網(wǎng)就沒(méi)用了,因?yàn)闆](méi)有中文詞庫(kù)。
3,下載詞庫(kù)
http://pkgs.org/centos-6-rhel-6/puias-i386/stardict-dic-zh_CN-2.4.2-6.puias6.noarch.rpm/download/
4,安裝詞庫(kù)
rpm -ivh stardict-dic-zh_CN-2.4.2-6.puias6.noarch.rpm
詞庫(kù)安裝問(wèn)題及說(shuō)明可以查看以下鏈接
http://pkgs.org/centos-6-rhel-6/puias-i386/stardict-dic-zh_CN-2.4.2-6.puias6.noarch.rpm.html
ok!現(xiàn)在斷網(wǎng)也能用了。
ps:也可以在 http://abloz.com/huzheng/stardict-dic/zh_CN/ 這個(gè)網(wǎng)站上下載你想要的其他中英詞庫(kù)。下載解壓后將其解壓在 /usr/share/stardict/dic/ 下就行了。
轉(zhuǎn)自:http://www.linuxso.com/linuxrumen/29170.html