LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 833|回复: 6

安装stardict的问题

[复制链接]
发表于 2006-5-29 17:06:40 | 显示全部楼层 |阅读模式
编译stardict时出错
信息如下:
#./configure --prefix=/usr --disable-gnome-support --with-x

.........

checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  cs de el hu hr ku mk nl ru sk tt uk vi zh_CN zh_TW
Disable gnome support
checking for STARDICT... configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

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.

To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
See `config.log' for more details.


但是PKG_CONFIG_PATH没有错误啊
[root@supercom ~/new/stardict-2.4.7]# echo $PKG_CONFIG_PATH
/usr/X11R6/lib/pkgconfig


是不是因为缺少库文件,也不知道需要什么
发表于 2006-5-29 17:29:33 | 显示全部楼层
export PKG_CONFIG=$(which pkg-config)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-29 17:39:02 | 显示全部楼层
多谢,
已经解决
stardict-2.4.5 可以安装,使用正常
但2.4.7不可以
呵呵,先用老版本但吧
回复 支持 反对

使用道具 举报

发表于 2006-5-29 19:58:03 | 显示全部楼层
没装 pkg-config?还是版本太旧了?
回复 支持 反对

使用道具 举报

发表于 2006-5-29 21:27:52 | 显示全部楼层
Post by 终极幻想
没装 pkg-config?还是版本太旧了?

不是,你必须设置PKG_CONFIG变量,不然它认为没有安装。这种情况在旧版本中不存在。
回复 支持 反对

使用道具 举报

发表于 2006-5-29 23:05:33 | 显示全部楼层
这个变量不是一直都设置了的么?
回复 支持 反对

使用道具 举报

发表于 2006-5-29 23:07:43 | 显示全部楼层
那个是PKG_CONFIG_PATH。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表