我正在尝试./configure
下载午夜指挥官http://ftp.midnight-commander.org/mc-4.8.14.tar.bz2
我得到以下信息:
checking for GLIB... no
configure: error: glib-2.0 not found or version too old (must be >= 2.14)
所以我得到了一个glib版本ftp://rpmfind.net/linux/sourceforge/r/ra/ramonelinux/Rel_0.99/releases/i686/packages/glib-2.41.2-1.ram0.99.i686.rpm
但是当我安装它时,它与当前版本冲突:
...
file /usr/share/locale/zh_CN/LC_MESSAGES/glib20.mo from install of glib-2.41.2-1.ram0.99.i686
conflicts with file from package glib2-2.40.0-4.el7.x86_64
file /usr/share/locale/zh_HK/LC_MESSAGES/glib20.mo from install of glib-2.41.2-1.ram0.99.i686
conflicts with file from package glib2-2.40.0-4.el7.x86_64
file /usr/share/locale/zh_TW/LC_MESSAGES/glib20.mo from install of glib-2.41.2-1.ram0.99.i686
conflicts with file from package glib2-2.40.0-4.el7.x86_64
事实上,我安装了一个有效的 glib:
sudo yum list installed | grep glib
ModemManager-glib.x86_64 1.1.0-6.git20130913.el7 @anaconda
NetworkManager-glib.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 @base
dbus-glib.x86_64 0.100-7.el7 @anaconda
glib-networking.x86_64 2.40.0-1.el7 @base
glib2.x86_64 2.40.0-4.el7 @base
glibc.x86_64 2.17-78.el7 @base
glibc-common.x86_64 2.17-78.el7 @base
glibc-devel.x86_64 2.17-78.el7 @base
glibc-headers.x86_64 2.17-78.el7 @base
那么为什么 MC 会因为错误的 glib 版本而胡言乱语呢?
答案1
您需要安装以下开发包glib
:
yum install glib2-devel
不过,您可以省去构建 Midnight Commander 的麻烦,它是为 CentOS 打包的:
yum install mc