CentOSにてMecabをインストールしようとしたところ、開発環境が入っていないためconfigureで失敗。
いろいろなもののインストールも試してみるが、どれをやってもconfigureでコマンドがない!としかられる。

ついにいろんなところで質問しまくってみたが、なかなかそれらしい返事もないまま・・・。
エラーは、no acceptable C compiler found in $PATH こんな感じのエラーが帰ってくる。
つまり、コンパイラがないって言っているみたいだ。
調べたところ、コンパイラはインストール直後には入っていないとのことなので、自分で入れなければならないらしい。
まぁ、ないとわかっただけでもいい。PATHが通っていないのか、それとも本当になかったのかすら疑問だったから。

てなわけで、質問内容も決まったので質問開始。

1.# yum install gcc*
Error: glibc-common conflicts with glibc < 2:2.3.4
Error: Missing Dependency: glibc-common = 2.3.4-2.25 is needed by package glibc

2.gccの場所を調べろといわれたので・・・
gccの場所 find -name gcc
./opt/src/gcc-3.4.3/gcc-3.4.3/gcc
./opt/src/gcc-3.4.3/gcc-3.4.3/gcc/testsuite/ada/acats/tests/gcc
./usr/src/gcc-3.4.3/gcc

3.yum grouplistでインストール
# yum groupinstall "Development Tools"

Error: lksctp-tools conflicts with kernel >= 2.6.10
Error: glibc-common conflicts with glibc < 2:2.3.4
Error: Missing Dependency: glibc-common = 2.3.4-2.25 is needed by package glibc

エラーでまくり。
依存っぽいようなので、下のコマンドを実行。

# yum info glibc-common
Loading "fastestmirror" plugin
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Installed Packages
Name : glibc-common
Arch : i386
Epoch : 2
Version: 2.3.4
Release: 2.25xen.YMCcentos.1
Size : 57 M
Repo : installed
Summary: Common binaries and locale data for glibc

Description:
The glibc-common package includes common binaries for the GNU libc
libraries, as well as national language (locale) support.


Available Packages
Name : glibc-common
Arch : i386
Version: 2.3.4
Release: 2.25
Size : 16 M
Repo : base
Summary: Common binaries and locale data for glibc
Description:
The glibc-common package includes common binaries for the GNU libc
libraries, as well as national language (locale) support.

「2.25xen.YMCcentos.1」
なにこれ。

ぐぐってみたが該当なし。なんだこれ????orz

なんだかわからないが、とりあえず削除を試みる。

#rpm -e glibc-common

error: Failed dependencies:
glibc-common = 2:2.3.4-2.25xen.YMCcentos.1 is needed by (installed) glib
c-2.3.4-2.25xen.YMCcentos.1.i686
/usr/bin/gencat is needed by (installed) redhat-lsb-3.0-8.EL.i386
/usr/bin/getconf is needed by (installed) redhat-lsb-3.0-8.EL.i386
/usr/bin/getent is needed by (installed) stunnel-4.05-3.i386
/usr/bin/iconv is needed by (installed) redhat-lsb-3.0-8.EL.i386
/usr/bin/locale is needed by (installed) redhat-lsb-3.0-8.EL.i386
/usr/bin/localedef is needed by (installed) redhat-lsb-3.0-8.EL.i386

ぎゃーーーーー><
わけわからない・・・なにこれなにこれなにこれ!?これは果たして自分で解決できるレベルなのだろうか・・・。

1日経過しました。

どうやら、カーネル自体をアップデートしなければならないっぽい。
質問のお返事には、Mecabgccを参照、gccglibcを参照。glibcカーネルを参照・・・って感じになっているらしい。
それを証拠に、この上にもredhatって出てるし。

CentOSは、始めから構築環境入ってなかったので、とりあえずここで終了。
余計なことしなければよかったなぁ・・・。
次からは始めから入れるようにしましょう。



『速報』
ものすごいオチがありました。
gccがインストールできないと必死に悩んでいたわけなんですが、本日VPSのサーバーを借りているサイトのヘルプを見ると、
gccのインストールの際は、競合する場合があるので以下のコマンドにてインストールしてください。」
#yum -enablerepo=ymc_xen install gcc

orz

@ymcを利用されている方はご注意orz

こんな感じであっさり解決しちゃいました。