sel*_*vin 6 environment-variables autoconf pkg-config
我正在 Redhat Linux Nash 4.x 系统上安装 FireFox 3.6 所需的库。
我已经成功安装了 glib2.12.0 库,但是当我 ./configure atk 1.9.0 库时,出现以下错误。
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.5.7... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLIB 2.5.7 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
Run Code Online (Sandbox Code Playgroud)
如何将路径添加到环境变量?
./configure --prefix=PREFIX默认是/usr/local。因此您需要添加PREFIX/lib/pkgconfig到 PKG_CONFIG_DIR。确切的方法因外壳而异,但最简单的选项(对于单个会话的时间)是命令export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH作为最后一条建议 - 不要从源代码安装。它看起来要复杂得多,你会遇到问题。看看你在Gentoo的操作系统(有工具的数量revdep-rebuild,lafilefixer等等)来处理它。您将独自一人,firefox/xulrunner 以非标准方式使用某些部分会XPCOM cannot start在 SONAME 不匹配的情况下提供有用的错误。
您也将在卸载它们时遇到问题,并且可能会在系统中留下垃圾。通常卸载脚本没有经过充分测试,甚至构建脚本也是粗心编写的。