0

fedora21安装有道词典linux版

 2 years ago
source link: https://www.hi-roy.com/posts/fedora21%E5%AE%89%E8%A3%85%E6%9C%89%E9%81%93%E8%AF%8D%E5%85%B8linux%E7%89%88/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

fedora21安装有道词典linux版

2015-04-22

今天发现有道词典出了linux版,不过万恶的只有deepin和ubuntu的安装包,作为忠实的红帽系用户只能下源码了。首先从 http://cidian.youdao.com/index-linux.html 选择二进制安装包并解压。

这里注意2个地方,首先fedora21默认为qt4,python2.7,而有道词典需要qt5以及python3,所以先要去官网下载QT5离线安装版(个人建议,我这在线安装qt5慢的不可忍受)。下载完成我们得到qt-opensource-linux-x64-5.4.1.run添加执行权限后执行即可。

安装完成后进入到解压后的有道词典目录,我这里叫youdao-dict_1.0.2~binary_amd64,给里面的install.sh添加执行权限并执行即可。

接下来到了最纠结的地方了,我们要手动安装各个依赖,这里我就直接给出经过N次失败后成功的结果把,下面这些都要用yum命令安装:

yum install python3-qt5
yum install python3-requests
yum install python3-xlib
yum install python3-lxml
yum install python3-pillow
yum install tesseract-langpack-chi_sim
yum install tesseract-langpack-chi_tra
yum install qt5-qtquickcontrols
yum install qt5-qtgraphicaleffects

都安装完成后就可以用了,支持取词、划词,不过取词识别度还有待提高,划词翻译比较好用。当然了,如果你想更geek一点,可以安装openyoudao也很酷。

Roy avatar
About Roy
野生程序猿,略懂Python,略懂Golang,略懂云计算,略懂大数据,略懂拳击游泳钓鱼,略懂钢琴吉他摄影。

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK