RHEL 7.4安装Gnome Commander时configure报错:找不到Glib 2.6.0以上版本
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 Glibglib2-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
First, install basic development tools (you'll need these for compiling any source code):
sudo yum groupinstall "Development Tools"Install the required Glib development package:
sudo yum install glib2-develVerify 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.0RHEL 7.4 ships with Glib 2.50.3, which is way above the 2.6.0 minimum requirement, so this should resolve the error.
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 componentslibxml2-devel: For XML parsing support
Just install them with sudo yum install [package-name] as needed.
内容的提问来源于stack exchange,提问作者Bartosz Cieszewski

