LinuxSir.cn,穿越时空的Linuxsir!

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

配置mozilla 时的错误,该如何解决?

[复制链接]
发表于 2005-1-13 17:23:05 | 显示全部楼层 |阅读模式
在配置mozilla时出现的错误
............
checking for gcc -pipe support... yes
checking whether compiler supports -Wno-long-long... yes
checking for correct overload resolution with const and templates... no
checking for libIDL-2.0 >= 0.8.0... Package libIDL-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libIDL-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libIDL-2.0' found

configure: error: Library requirements (libIDL-2.0 >= 0.8.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

我的 libIDL* 在/usr/lib,后来我 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH :/usr/lib:/usr/local/lib:/lib: 可错误依旧,似乎这个改动没有起到效果,它仍然找不到库。

似乎都是表明 PKG_CONFIG_PATH 没有设置正确。
我编译pkgconfig时,方法如下:

./configure --prefix=/usr &&
make &&
make install

配置 pkgconfig
把下面的话加到你/etc/profiel:
export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig

我也在当前目录下检查了,
echo  $PKG_CONFIG_PATH 它确实等于以上的设置。

我该怎么做???? :help  :help  :help
发表于 2005-1-13 18:02:30 | 显示全部楼层
pkgconfig不是这样地。PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/opt/gnome-2.8/lib/pkgconfig:/lib/pkgconfig
是类似这样的.
 楼主| 发表于 2005-1-14 11:11:50 | 显示全部楼层
重装了libIDL,解决了libIDL错误。
可出现了其它错误,信息如下:
...............
checking for libIDL-2.0 >= 0.8.0... yes   (原来出错的地方就是不满足这个条件)
checking LIBIDL_CFLAGS... -I/usr/include/libIDL-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
checking LIBIDL_LIBS... -lIDL-2 -lglib-2.0  
configure: error: SVG requires a modified version of libart. To pull and build
this LGPL library, set MOZ_INTERNAL_LIBART_LGPL, and then rerun the
checkout stage

#echo $PKG_CONFIG_PATH
/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib:/lib:/usr/local/lib

看出错信息,我又重新编译、安装了libart_lgpl-2.3.11,不行,升级到libart_lgpl-2.3.16,问题依旧,我要晕死了,不知道是什么原因啊
回复 支持 反对

使用道具 举报

发表于 2005-1-14 11:42:15 | 显示全部楼层
如果你的/usr/lib/pkgconfig/有libart_logpl-2.3.11.pc的话,就不是PKG_CONFIG_PATH的问题了。
看错误信息似乎是要设置 MOZ_INTERNAL_LIBART_LGPL变量。
我没编译过mozilla,你找找资料看看这里怎么设置吧。
btw PKG_CONFIG_PATH不用设置成:/usr/lib:/lib:/usr/local/lib
改成/usr/local/pkgconfig就可以了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-17 14:14:35 | 显示全部楼层
的确不是PKG_CONFIG_PATH的问题。
解决了,
#export MOZ_INTERNAL_LIBART_LGPL=/usr/lib

这个是我自己试着弄的,没想到居然过了!编译mozilla我是按照BLFS文档里做的,怎么没说啊,还好解决了。写出来,给大家参考。
回复 支持 反对

使用道具 举报

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

本版积分规则

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