>然后会再错>>再错>>再错。 1。。yum install " />
红联Linux门户
Linux帮助

哪位高手能再编译一下stardict3.0.1我已经完成90%了

发布时间:2010-08-29 02:20:20来源:红联作者:hyf320481
[i=s] 本帖最后由 hyf320481 于 2010-8-29 07:28 编辑 [/i]

源码安装startdict-3.0.1(星际译王)
第一次./configure时会出错的。。提示安装 xml... 再"./configure"提示使用"--disable-spell"...等等。。一直提示4个>>然后会再错>>再错>>再错。
1。。yum install perl-XML-Parser 我装的这是的yum install intltool 里面有xml
2。。./configure --prefix=/usr/local/ --disable-gucharmap --disable-spell --disable-festival --disable-espeak
3 第三步http://blog.chinaunix.net/u1/41420/showart_470898.html%E2%80%9D (参考)
3-1..第三步中输入PKG_CONFIG=/usr/bin/pkg-config
3-2 export PKG_CONFIG=/usr/bin/pkg-config
4:再检查:./configure --prefix=/usr/local/ --disable-gucharmap --disable-spell --disable-festival --disable-espeak
5:晕,,还有错。。
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for STARDICT... configure: error: Package requirements (libgnomeui-2.0 >= 2.20) were not met:

Requested 'libgnomeui-2.0 >= 2.20' but version of libgnomeui is 2.16.0

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables STARDICT_CFLAGS
and STARDICT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

[root@linux5588 stardict-3.0.1]#
libgnomeui-2.16的版本过低 找2.20 以上的版本。找到后再试
那就再试下./confi................
会让你安装 gtk....http://www.gtk.org/download-linux.html
安装gtk时。还会让你安装下面几个。。。你在百度搜索glib..这个网页。你会找到2个http://www.gtk.org/download-linux.html
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.23.6 atk >= 1.29.2 pango >= 1.20 cairo >= 1.6) were not met:

Requested 'glib-2.0 >= 2.23.6' but version of GLib is 2.12.3
Requested 'atk >= 1.29.2' but version of Atk is 1.12.2
Requested 'pango >= 1.20' but version of Pango is 1.14.9
Requested 'cairo >= 1.6' but version of cairo is 1.2.4

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
最后两个我没找到cairo...atk. 找到了应该差不多完成了。。到这里应该gtk编译完了。。
最后安装一下软件包。。。应试问题不大。这是我最烦的一次编译。。虽然没完成。好累
文章评论

共有 6 条评论

  1. 伏地魔的咒怨 于 2011-07-22 09:14:30发表:

    都是高手..

  2. shenhao0129 于 2010-08-29 21:31:50发表:

    我都是用deb包安装的,原来一直都是编译安装的,后来懒的搞了

  3. alick 于 2010-08-29 21:04:57发表:

    编译这个高版本代价太大,因为底层库gtk需要高版本。
    换成适合桌面的fedora的最新版,gtk库的版本就应该满足要求。
    毕竟服务器版的发行版的软件就是比较旧~

  4. hyf320481 于 2010-08-29 19:04:40发表:

    内核更新没用。。我试过。更新后还造成gui不稳定。后来又删了。。
    至于我为什么要不用源里面的2.4.5版本就是因为太低了。。真人音库的的路径无法设置,,只有高版本的才有这个功能。不然只能安装tts音库了。
    所以我不得不编译。。

  5. daidaiboy 于 2010-08-29 18:37:08发表:

    把内核更新一下,同时做下升级,估计会好点

  6. alick 于 2010-08-29 17:25:41发表:

    哦,我明白了。楼主系统上带的gtk库版本较低,而
    stardict3.0.1要求的gtk版本较高。如此引来诸多问题。
    glib,cario,pango 等都是 gtk所依赖的。

    建议:安装对应系统软件源中的stardict的rpm包(优先考虑),或者源码安装所需gtk版本不那么高的stardict