- 論壇徽章:
- 0
|
作者:呂大偉
時(shí)間:2007-10-22
Blog:http://ldw21cn.cublog.cn
環(huán)境:RHEL4
經(jīng)過下載安裝,發(fā)現(xiàn)安裝3.0版在紅帽四上問題多,于是為了簡(jiǎn)便一下操作選擇了2.4版的主程序
下載主程序:
http://downloads.sourceforge.net/stardict/stardict-2.4.6.tar.bz2?modtime=1137769114&big_mirror=1
安裝主程序:
#cd stardict-2.4.6
#./configure
#make && make install
下載字典文件
http://prdownloads.sourceforge.net/stardict/stardict-cdict-gb-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-oxford-gb-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-oxford-gb-formated-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-stardict1.3-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-xdict-ec-gb-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-xdict-ce-gb-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-cedict-gb-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-langdao-ec-gb-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-lazyworm-ec-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-oxfordjm-ec-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-ProECCE-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-hanzim-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-xiangya-medical-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-gaojihanyudacidian_fix-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-guojibiaozhunhanzidacidian-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-hanyuchengyucidian-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-hanyuchengyucidian_fix-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-HanYuChengYuCiDian-new_colors-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-xiandaihanyucidian_fix-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-21shijishuangxiangcidian-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-quick_eng-zh_CN-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-21shijishuangyukejicidian-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-ncce-ce-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-kdic-ec-11w-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-kdic-computer-gb-2.4.2.tar.bz2?download
http://prdownloads.sourceforge.net/stardict/stardict-wubi86-2.4.2.tar.bz2?download
可以把以上內(nèi)容保存為文本文件dict.txt,然後你就可以用如下命令下載了:
#wget -c -i dict.txt
最后把詞典解壓到/usr/local/share/stardict/dic目錄即可,如果沒有這個(gè)目錄則創(chuàng)建之
#mkdir /usr/local/share/stardict/dic
對(duì)于大批量的解壓可使用腳本完成,首先創(chuàng)建一個(gè)腳本文件為untar.sh,操作如下:
#touch untar.sh
#chmod +x untar.sh
#vi untar.sh(填寫腳本內(nèi)容如下:)
#!/bin/bash
LS=`ls *.bz2`
DIC="/usr/local/share/stardict/dic"
for i in $LS
do
echo $i
tar xvfj $i -C $DIC
done
#sh untar.sh(執(zhí)行此腳本)
注:以上操作均在同一目錄下進(jìn)行
在終端中使用下列命令可以看到星際譯王加載的詞典:
#stardict
bookname: XDICT英漢辭典 , wordcount 177842
bookname: stardict1.3英漢辭典 , wordcount 51214
bookname: 五筆86 , wordcount 78641
bookname: CEDICT漢英辭典 , wordcount 31992
bookname: 牛津英漢雙解美化版 , wordcount 39429
bookname: 計(jì)算機(jī)詞匯 , wordcount 6131
bookname: 高級(jí)漢語大詞典 , wordcount 51675
bookname: quick_eng-zh_CN , wordcount 633989
bookname: 英漢漢英專業(yè)詞典 , wordcount 571998
bookname: XDICT漢英辭典 , wordcount 160997
bookname: CDICT5英漢辭典 , wordcount 57510
本文來自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u/26862/showart_405377.html |
|