现在的位置: 首页 > 综合 > 正文

centos6.0安装ibm智能词典

2013年09月09日 ⁄ 综合 ⁄ 共 1275字 ⁄ 字号 评论关闭

1. ibm智能词典下载:

http://netlesson.ccucomp.cn/downloads/soft/ibmword.rar

2.由于centos不支持rar命令,

wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gz
tar -xvf rarlinux-3.9.3.tar.gz
cd rar
make

3. rar e ibmword.rar 后是XP下的安装文件,悲剧了。

4. 在http://download.chinaunix.net/download/0001000/92.shtml

下载sdcv-0.4.1.tar.bz2

bzip2 -d stardict-3.0.1.tar.bz2

得到stardict-3.0.1.tar

tar -xvf stardict-3.0.1.tar -C /user/local

阅读INSTALL

./configure`````

报错:configure: error: Enchant library not found or too old. use --disable -spell to build without spell plugin.

增加相应的--disable -spell即可。

5. 发现找不到pkg-config,安装后发现libgnomeui的许多lib库过低,欲哭无泪·····

6.下次再说吧,要给女朋友搬东西去了。

7.注意到, 错误提示里面, 后半段是

set the PKG_CONFIG environment variable to the full path to pkg-config.

    环境变量 PKG_CONFIG 没有指向 pkg-config的完全路径, 看下 PKG_CONFIG

dorainm@coffee $ echo $PKG_CONFIG

dorainm@coffee $

    的确是空的, 看下 pkg-config 在哪个目录里面

dorainm@coffee $ find / -type f -name 'pkg-config'
/usr/bin/pkg-config
dorainm@coffee $

    现在设置环境变量, PKG_CONFIG

dorainm@coffee $ export PKG_CONFIG=/usr/bin/pkg-config
dorainm@coffee $ echo $PKG_CONFIG
/usr/bin/pkg-config
dorainm@coffee $

现在#./configure --disable-spell --disable-gucharmap --disable-festival --disable-espeak   

   error!

绝杀:找到rpm包,呵呵。

文章介绍:http://linuxroad.blog.51cto.com/765922/842661

参考文献:

http://imcat.in/linux-system-install-rar-centos/

http://blog.chinaunix.net/space.php?uid=20396006&do=blog&id=1951234

抱歉!评论已关闭.