ubuntu18.04 下安装星际译王3

直接从软件源中安装startdic总是失败。安装日志显示有些依赖库的版本有问题。于是自己尝试下从源码直接编译。

我的操作系统版本

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.4 LTS
Release:	18.04
Codename:	bionic

从官网下载3.0.6源码

http://stardict-4.sourceforge.net/

解压,然后进入源代码目录。

安装依赖库

运行 ./configure ,此时肯定会议提示某些库找不到。

经过一番的尝试,凑齐了在我的系统上编译所需要的库

sudo apt-get install libgtkspell3-3-0 libgtkspell3-3-dev
sudo apt-get install libmysqlclient-dev
sudo apt-get install libespeak1 libespeak-dev

编译

参考源代码目录下的 INSTALL 文件。

./configure  --disable-gucharmap --disable-dictdotcn --disable-festival
make -j 4
sudo make install

如果没出错的话应该安装成功了,可以打开终端运行 stardict 看一下是否安装成功了。

安装词典

词典存放的目录是: /usr/share/stardict/dic/

如果这个目录不存在,需要手动创建。

下载词典:

http://download.huzheng.org/

http://download.huzheng.org/zh_CN/

将下载的词典解压后,直接拷贝到词典存放目录即可

效果

参考

找不到 mysql_config:

https://stackoverflow.com/questions/7475223/mysql-config-not-found-when-installing-mysqldb-python-interface

星际译王官网:

http://stardict-4.sourceforge.net/

Github: https://github.com/huzheng001/stardict-3

还有的更牛比的: https://github.com/goldendict/goldendict

安装词典目录: 

https://wiki.ubuntu.org.cn/Stardict

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章