CentOS安装stardict
时间: 2013-07-20 / 分类: Software / 浏览次数: 1,409 views / 0个评论 发表评论
Linux上的词典虽然不多,但也有不错的精品,stardict就是一个。 首先先下载stardict的rpm版本,在这里: http://pkgs.org/search/?keyword=stardict 选择对应的版本然后点击进入页面,在Download stardict处点击进入下载页面,然后下载binary package版本,我下载的是stardict-3.0.2-1.el6.i686.rpm 现在进行安装: [root@ienter Downloads]# rpm -ivh star* warning: stardict-3.0.2-1.el6.i686.rpm: Header V4 DSA/SHA1 Signature, key ID fac8d3c0: NOKEY error: Failed dependencies: espeak is needed by stardict-3.0.2-1.el6.i686 libespeak.so.1 is needed by stardict-3.0.2-1.el6.i686 结束是缺少信赖,改个方式,用yum安装 [root@ienter Downloads]# yum localinstall star* Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Local Package Process Examining stardict-3.0.2-1.el6.i686.rpm: stardict-3.0.2-1.el6.i686 Marking stardict-3.0.2-1.el6.i686.rpm to be installed Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * rpmforge: mirror.oscc.org.my * updates: centos.ustc.edu.cn Resolving Dependencies --> Running transaction check ---> Package stardict.i686 0:3.0.2-1.el6 will be installed --> Processing Dependency: espeak for package: stardict-3.0.2-1.el6.i686 --> Processing Dependency: libespeak.so.1 for package: stardict-3.0.2-1.el6.i686 --> Running transaction check ---> Package espeak.i686 0:1.40.02-4.el6_3 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: stardict i686 3.0.2-1.el6 /stardict-3.0.2-1.el6.i686 4.7 M Installing for dependencies: espeak i686 1.40.02-4.el6_3 base 638 k Transaction Summary ================================================================================ Install 2 Package(s) Total size: 5.3 M Total download size: 638 k Installed size: 5.9 M Is this ok [y/N]: y Downloading Packages: espeak-1.40.02-4.el6_3.i686.rpm | 638 kB 00:05 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : espeak-1.40.02-4.el6_3.i686 1/2 Installing : stardict-3.0.2-1.el6.i686 2/2 Verifying : espeak-1.40.02-4.el6_3.i686 1/2 Verifying : stardict-3.0.2-1.el6.i686 2/2 Installed: stardict.i686 0:3.0.2-1.el6 Dependency Installed: espeak.i686 0:1.40.02-4.el6_3 Complete! 好啦,它自动解决了信赖问题,这个yum localinstall 还是相当爽的。不过虽然安装了,但是离线的话,还是使用不了,没有本地的词典,现在就开始安装词典,找词典下载: http://pkgs.org/search/?keyword=stardict-dic 这里面有好几个,但是我们用的是中文词典,stardict-dic-zhCN-2.4.2-6.puias6.noarch.rpm,点击进入后,在Download stardict-dic-zhCN处点击进去下载页面。同样下载binary package版本的。下载后直接安装: [root@ienter Downloads]# rpm -ivh stardict-dic* warning: stardict-dic-zh_CN-2.4.2-6.puias6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 41a40948: NOKEY Preparing... ########################################### [100%] 1:stardict-dic-zh_CN ########################################### [100%] ok安装完成,现在离线也可以用了。其实网络上可以找到好多词典,直接google,或者当它不能用的时候baidu。有很多rpm的词典,直接下载后安装就可以,可以按自己的需求,比如需要一些专业的词典什么的,都可以在网络上找一下,一般问题不会大的。
stardict (责任编辑:IT) |