Debian安装stardict(星际译王)

出自Linux Wiki

在2007年8月16日 (四) 07:27由Chenxing (讨论 | 贡献)所做的修订版本
(差异) ←上一修订 | 最新修订 (差异) | 下一修订→ (差异)

stardict 3.0.0版本于2007年8月12日发布。作者提供了Fedora的安装包,Debian用户需要从源码编译安装了。

目前发现包括debian unstable在内festival版本都不够高,编译时会出现错误(如果知道如何解决请修改本文)。只能去掉festival支持,在装了真人语音之后,常见词语还是有声音的。

准备工作

为了方便,首先安装stardict 2.4的编译环境。

# apt-get build-dep stardict

然后把stardict彻底删掉。(词典会保留)

# apt-get remove --purge stardict stardict-common 

再安装一些包(不知是否为必须,我在build-dep之前装的这些包)

# apt-get install libenchant-dev libgucharmap-dev gucharmap libespeak-dev

下载源码文件: http://downloads.sourceforge.net/stardict/stardict-3.0.0.tar.bz2

编译、安装

按照说明操作就是了。最用root用户吧:

# tar xvfj stardict-3.0.0.tar.bz2
# cd stardict-3.0.0
# ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --disable-festival
# make
# make install

安装就完成了,编译可能需要几分钟的时间。

个人工具
简体繁体转换