centOSにMidnight Commanderをインストールすると、glibの問題が発生します。

centOSにMidnight Commanderをインストールすると、glibの問題が発生します。

./configureMidnight Commanderをダウンロードしようとしています。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

ただし、CentOS用にパッケージ化されたMidnight Commanderを構築する手間がかかりません。

yum install mc

おすすめ記事