首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:构建irssi需要GLib

错误:构建irssi需要GLib
EN

Stack Overflow用户
提问于 2014-08-14 09:25:03
回答 1查看 2K关注 0票数 1

我是Linux (Debian)世界的新手。Irssi需要GLib,所以我安装了2.6.6版本。在尝试./configure Irssi时,它提供:

代码语言:javascript
复制
...
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.

有人能告诉我怎么回事吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-08-15 02:24:34

用于库的包至少分为两个包--一个用于共享库本身,这是运行使用该库的软件所需要的,另一个用于编译依赖于该库的软件所需的额外材料。在Debian中,这些包的名称是libglib-2.0libglib-2.0-dev

您安装了2.32.2版本的libglib-2.0,但是为了编译像irssi这样的软件,您需要libglib-2.0-dev。正确的做法是安装该软件包:

代码语言:javascript
复制
sudo apt-get install libglib-2.0-dev

不幸的是,像您一样安装一个古老版本的glib (2.6.6是在2005-08-01年发布的)可能已经严重破坏了您的系统,因为它很可能其他软件依赖于一个更新的版本的glib。如果您没有将任何参数传递给./configure,那么它很可能安装到/usr/local中,这很好,因为它可能没有覆盖您在/usr中需要的任何内容(这是安装打包版本的地方)。因此,您可能只需进入编译了2.6.6的目录并运行:

代码语言:javascript
复制
sudo make uninstall

您可能还希望从Debian重新安装该软件包:

代码语言:javascript
复制
sudo apt-get install --reinstall libglib-2.0

我不知道您想用irssi做什么,但是不要从tarball安装它,您可能只想使用Debian包:

代码语言:javascript
复制
sudo apt-get install irssi

除非您实际上正在修改代码,否则您几乎不希望从tarball(或git )安装。我建议您找到您安装的任何图形化包管理器--该包取决于Debian的版本以及您选择的桌面环境,但可能的选择是GNOME软件中心或Synaptic。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25304578

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档