广告

本站里的文章大部分经过自行整理与测试

2016年4月28日星期四

Debian / Ubuntu / Linux Mint - 有道词典

Ubuntu 至少要 16.04
http://cidian.youdao.com/multi.html#linuxAll 

$ wget http://codown.youdao.com/cidian/linux/youdao-dict_1.1.0-0-ubuntu_amd64.deb
$ wget http://codown.youdao.com/cidian/linux/youdao-dict_1.1.0-0-ubuntu_i386.deb
$ su
$ dpkg -X ./youdao-dict_1.1.0-0-ubuntu_amd64.deb youdao
$ dpkg -e ./youdao-dict_1.1.0-0-ubuntu_amd64.deb youdao/DEBIAN

# 删除 Depends 后面的 , gstreamer0.10-plugins-ugly
$ gedit youdao/DEBIAN/control

$ mkdir youdaobuild
# 重编译

$ dpkg-deb -b youdao youdaobuild/

$ cd youdaobuild


# 安装

$ dpkg -i youdao-dict_1.1.0-0*ubuntu_amd64.deb

# 依赖软件包的清单
$ apt-get install python3 python3-dbus python3-lxml python3-pil
$ apt-get install python3-pyqt5 python3-pyqt5.qtmultimedia python3-pyqt5.qtquick python3-pyqt5.qtwebkit
$ apt-get install python3-requests python3-xdg python3-xlib
$ apt-get install tesseract-ocr tesseract-ocr-eng tesseract-ocr-chi-sim tesseract-ocr-chi-tra
$ apt-get install gir1.2-appindicator3-0.1 qtdeclarative5-controls-plugin libqt5multimedia5-plugins ttf-wqy-microhei 


Linux Mint

# 除了以上软件包, 再加上
$ apt-get install libqt5qml-graphicaleffects
$ apt-get install qtdeclarative5-dialogs-plugin qtdeclarative5-qtquick2-plugin qtdeclarative5-window-plugin
$ apt-get install qtdeclarative5-localstorage-plugin


Debian

下载 / 更改 / 重编译 / 安装方法跟以上一样
但 debian 没有依赖软件包 qtdeclarative5-controls-plugin
所以要多删除一个 Depends 后面的 , qtdeclarative5-controls-plugin

$ apt-get install libcanberra-gtk-module
$ apt-get install qtdeclarative5-dev
$ apt-get install build-essential qmlscene qt5-qmake qt5-default
$ apt-get install qml-module-qtgraphicaleffects
qml-module-qtquick-controls 
$ apt-get -f install

还有安装 python3-xlib

$ wget https://github.com/LiuLang/kwplayer-packages/raw/master/python3-xlib_0.15-1_all.deb
$ dpkg -i python3-xlib_0.15-1_all.deb

# 依赖软件包的清单
$ apt-get install python3 python3-dbus python3-lxml python3-pil
$ apt-get install python3-pyqt5 python3-pyqt5.qtmultimedia python3-pyqt5.qtquick python3-pyqt5.qtwebkit
$ apt-get install python3-requests python3-xdg
$ apt-get install tesseract-ocr tesseract-ocr-eng tesseract-ocr-chi-sim tesseract-ocr-chi-tra
$ apt-get install gir1.2-appindicator3-0.1 libqt5multimedia5-plugins ttf-wqy-microhei

没有评论:

发表评论