You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

RHEL 7.4安装Gnome Commander时configure报错:找不到Glib 2.6.0以上版本

Fixing Glib >=2.6.0 Dependency Error for Gnome Commander on RHEL 7.4

Hey there, let's tackle this dependency issue step by step. The problem here is that you're using the wrong package name for the Glib development files required by the ./configure script.

Why sudo yum install glib doesn't work

In RHEL 7.4, the Glib libraries are split into two main packages:

  • glib2: The runtime libraries needed to run applications that use Glib
  • glib2-devel: The development files (header files, static libraries, and build configs) that are required when compiling software like Gnome Commander

The configure script is checking for the development files, not just the runtime libraries, so you need the -devel package.

Step-by-step fix

  1. First, install basic development tools (you'll need these for compiling any source code):

    sudo yum groupinstall "Development Tools"
    
  2. Install the required Glib development package:

    sudo yum install glib2-devel
    
  3. Verify the installation (optional, but useful to confirm):
    You can check if the Glib version meets the requirement with this command:

    pkg-config --modversion glib-2.0
    

    RHEL 7.4 ships with Glib 2.50.3, which is way above the 2.6.0 minimum requirement, so this should resolve the error.

  4. Re-run the configure script:

    ./configure
    

Bonus: Handling other potential dependencies

If you run into additional dependency errors later (common with Gnome Commander), here are a few more -devel packages you might need to install:

  • gtk2-devel: For GTK+ 2 support (required by Gnome Commander)
  • libgnomeui-devel: For Gnome UI components
  • libxml2-devel: For XML parsing support

Just install them with sudo yum install [package-name] as needed.

内容的提问来源于stack exchange,提问作者Bartosz Cieszewski

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 07:09:17