RHEL6.2手动封装rpm源码包安装星际译王
星际译王(StarDict)是利用GTK(GIMP TOOLKIT)开发的国际化的、跨平台的*的桌面字典软件。自身并不包含字典,须自行下载配合使用。它可以运行于多种不同的平台,如 Linux、Windows、FreeBSD及Solaris等,并使用GPL授权。
在RHEL6.2 64位系统,通过源码包安装,编译时disable各种选项好不容易通过后,始终无法make成功,google后初步判断应该是gcc4.4的bug,打了补丁也无效。最后通过编译rpm源码包成功安装。
-
下载地址:(包含rpm包和rpm源码包,不喜欢编译的可选择rpm binary安装包直接安装)
- [[email protected] ~]# rpm -ivh stardict-3.0.1-22.puias6.src.rpm
- warning: stardict-3.0.1-22.puias6.src.rpm: Header V3 RSA/SHA256 Signature, key ID 41a40948: NOKEY
- 1:stardict warning: user mockbuild does not exist - using root
- warning: group mockbuild does not exist - using root
- warning: user mockbuild does not exist - using root
- warning: group mockbuild does not exist - using root
- warning: user mockbuild does not exist - using root
- warning: group mockbuild does not exist - using root
- warning: user mockbuild does not exist - using root
- warning: group mockbuild does not exist - using root
- warning: user mockbuild does not exist - using root
- warning: group mockbuild does not exist - using root
- warning: user mockbuild does not exist - using root
- warning: group mockbuild does not exist - using root
- warning: user mockbuild does not exist - using root
- warning: group mockbuild does not exist - using root
- ########################################### [100%]
- warning: user mockbuild does not exist - using root
- warning: group mockbuild does not exist - using root
- warning: user mockbuild does not exist - using root
- warning: group mockbuild does not exist - using root
- [[email protected] ~]# cd rpmbuild/SPECS
- [[email protected] SPECS]# cat stardict.spec | grep -v "#" | grep Requires:
- Requires: enchant, espeak, gucharmap >= 2.22.1, libbonobo >= 2.2.0, libgnome >= 2.2.0, libgnomeui >= 2.2.0, libsigc++20 >= 2.0.17
- BuildRequires: autoconf, automake, libtool
- BuildRequires: desktop-file-utils, enchant-devel, gettext, intltool, libgnomeui-devel >= 2.2.0, libsigc++20-devel, libtool, perl-XML-Parser, scrollkeeper
- BuildRequires: gucharmap-devel >= 2.22.1
- //从stardict.spec文件可以发现编译过程需要以上的依赖包,所以必须先安装好依赖包再进行编译,其中的一些非系统自带的依赖包在以下地址下载:
- http://down.51cto.com/data/766011
- [[email protected] SPECS]# rpm -ba stardict.spec
这时候在附件里面已经可以启动星际译王了。不过现在只能联网才能使用,以下开始添加字典:
字典可以在http://abloz.com/huzheng/stardict-dic/zh_CN/这个网站上下载你想要的其他中英词库或者其他你想要的词库。下载解压后将其解压在 /usr/share/stardict/dic/下即可使用
[[email protected] ~]# ls /usr/share/stardict/dic/
stardict-hanyuchengyucidian-2.4.2 stardict-kdic-computer-gb-2.4.2 stardict-ncce-ce-2.4.2
stardict-hycihai-2.4.2 stardict-langdao-ec-gb-2.4.2 stardict-ncce-ec-2.4.2
转载于:https://blog.51cto.com/vnimos/1186395