Text::ChaSenのエラー

投稿者:

ChasenのperlモジュールのText::Chasenを通常通りインストールするとエラーになる
Can’t load ‘/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/Text/ChaSen/ChaSen.so’ for module Text::ChaSen: /usr/lib/libchasen.so.0: undefined symbol: _ZNSs4_Rep11_S_terminalE at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
Makefile.PLを以下のように修正する
‘NAME’ => ‘Text::ChaSen’,
‘VERSION_FROM’ => ‘ChaSen.pm’,
‘LIBS’ => [‘-lchasen’]
,’LD’ => “c++”      ←これを追加
);
perl Makefile.pl
make
make install

Thank you for reading this post, don't forget to subscribe!