我是Linux (Debian)世界的新手。Irssi需要GLib,所以我安装了2.6.6版本。在尝试./configure Irssi时,它提供:
...
checking pkg-config is at least version 0.7... yes
checking for GLIB - version >= 2.6.0...
*** 'pkg-config --modversion glib-2.0' returned 2.6.6, but GLIB (2.32.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
*** trying without -lgmodule
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking pkg-config is at least version 0.7... yes
checking for GLIB - version >= 2.6.0...
*** 'pkg-config --modversion glib-2.0' returned 2.6.6, but GLIB (2.32.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
*** If you don't have GLIB, you can get it from ftp://ftp.gtk.org/pub/glib/
*** We recommend you get the latest stable GLIB 2 version.
*** Compile and install it, and make sure pkg-config finds it,
*** by adding the path where the .pc file is located to PKG_CONFIG_PATH
configure: error: GLIB is required to build irssi.有人能告诉我怎么回事吗?
发布于 2014-08-15 02:24:34
用于库的包至少分为两个包--一个用于共享库本身,这是运行使用该库的软件所需要的,另一个用于编译依赖于该库的软件所需的额外材料。在Debian中,这些包的名称是libglib-2.0和libglib-2.0-dev。
您安装了2.32.2版本的libglib-2.0,但是为了编译像irssi这样的软件,您需要libglib-2.0-dev。正确的做法是安装该软件包:
sudo apt-get install libglib-2.0-dev不幸的是,像您一样安装一个古老版本的glib (2.6.6是在2005-08-01年发布的)可能已经严重破坏了您的系统,因为它很可能其他软件依赖于一个更新的版本的glib。如果您没有将任何参数传递给./configure,那么它很可能安装到/usr/local中,这很好,因为它可能没有覆盖您在/usr中需要的任何内容(这是安装打包版本的地方)。因此,您可能只需进入编译了2.6.6的目录并运行:
sudo make uninstall您可能还希望从Debian重新安装该软件包:
sudo apt-get install --reinstall libglib-2.0我不知道您想用irssi做什么,但是不要从tarball安装它,您可能只想使用Debian包:
sudo apt-get install irssi除非您实际上正在修改代码,否则您几乎不希望从tarball(或git )安装。我建议您找到您安装的任何图形化包管理器--该包取决于Debian的版本以及您选择的桌面环境,但可能的选择是GNOME软件中心或Synaptic。
https://stackoverflow.com/questions/25304578
复制相似问题