わからん!

Debian etchCPAN経由でText::MeCabを入れようとしているんだけど・・・。
以下のようなエラーが出て止まってしまう。

Path to mecab config? [/usr/bin/mecab-config]
detected mecab version 0.93
Using compiler flags '-DMECAB_MAJOR_VERSION=0 -DMECAB_MINOR_VERSION=93'...
Using linker flags '-L/usr/lib -lmecab -lstdc++'...

Text::MeCab needs to know what encoding you built your dictionary with
to properly execute tests.

Encoding of your mecab dictionary? (shift_jis, euc-jp, utf-8) [utf-8]
Using utf-8 as your dictionary encoding
Detected the following mecab information:
version: 0.93
cflags: -DMECAB_MAJOR_VERSION=0 -DMECAB_MINOR_VERSION=93 -I src
libs: -L/usr/lib -lmecab -lstdc++
include: /usr/include
Can't build and link to 'stdc++'
DMAKI/Text-MeCab-0.20007.tar.gz
/usr/bin/perl Makefile.PL -- NO Makefile created
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
DMAKI/Text-MeCab-0.20007.tar.gz : writemakefile NO -- No Makefile created

Makefile.PLをのぞいてみると、Devel::CheckLib::check_lib_or_exit関数に'-L/usr/lib -lmecab -lstdc++'を渡してて、そこでこけてる感じ。
エラーメッセージからすると、/usr/lib/stdc++が存在しないのが原因っぽい。
で。
・・・この/usr/lib/stdc++って、どのパッケージ入れたら入るんでしょう?(^^;
あるいは、libstdc++.so.6あたりにシンボリックリンク張れば良いのかしらん?


あ〜、さっぱりわからん。
教えて、エライ人〜
2008.05.30追記
シンボリックリンク張ったら解決した。

ln -s /usr/lib/libstdc++.so.6 /usr/lib/stdc++.so.6

単純に「stdc++」という名前でシンボリックリンク張ってたからダメだったらしい。
Linuxにも拡張子って概念があるのね(^^;
勉強が足りないなぁ。


id:soybeens:20080530に続く