- 论坛徽章:
- 0
|
作者:吕大伟
时间:2007-10-22
Blog:http://ldw21cn.cublog.cn
环境:RHEL4
经过下载安装,发现安装3.0版在红帽四上问题多,于是为了简便一下操作选择了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
可以把以上内容保存为文本文件dict.txt,然後你就可以用如下命令下载了:
#wget -c -i dict.txt
最后把词典解压到/usr/local/share/stardict/dic目录即可,如果没有这个目录则创建之
#mkdir /usr/local/share/stardict/dic
对于大批量的解压可使用脚本完成,首先创建一个脚本文件为untar.sh,操作如下:
#touch untar.sh
#chmod +x untar.sh
#vi untar.sh(填写脚本内容如下:)
#!/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(执行此脚本)
注:以上操作均在同一目录下进行
在终端中使用下列命令可以看到星际译王加载的词典:
#stardict
bookname: XDICT英汉辞典 , wordcount 177842
bookname: stardict1.3英汉辞典 , wordcount 51214
bookname: 五笔86 , wordcount 78641
bookname: CEDICT汉英辞典 , wordcount 31992
bookname: 牛津英汉双解美化版 , wordcount 39429
bookname: 计算机词汇 , wordcount 6131
bookname: 高级汉语大词典 , wordcount 51675
bookname: quick_eng-zh_CN , wordcount 633989
bookname: 英汉汉英专业词典 , wordcount 571998
bookname: XDICT汉英辞典 , wordcount 160997
bookname: CDICT5英汉辞典 , wordcount 57510
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26862/showart_405377.html |
|