MeCab: Yet Another Part-of-Speech and Morphological Analyzer
http://mecab.sourceforge.net/
MeCabメーリングリスト
http://sourceforge.jp/projects/mecab/
簡単な使い方.
MeCabコマンド単独での実行.
http://mecab.sourceforge.net/#parse
% cd mecab-perl-0.98
% perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for MeCab
% make
cp MeCab.pm blib/lib/MeCab.pm
g++ -c -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64 -DVERSION=¥"0.98¥" -DXS_VERSION=¥"0.98¥" -fPIC "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" MeCab_wrap.cxx
Running Mkbootstrap for MeCab ()
chmod 644 MeCab.bs
rm -f blib/arch/auto/MeCab/MeCab.so
g++ -shared MeCab_wrap.o -o blib/arch/auto/MeCab/MeCab.so -L/usr/local/lib -lmecab -lstdc++
chmod 755 blib/arch/auto/MeCab/MeCab.so
cp MeCab.bs blib/arch/auto/MeCab/MeCab.bs
chmod 644 blib/arch/auto/MeCab/MeCab.bs
% make test
# make install
Installing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/MeCab/MeCab.so
Installing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/MeCab/MeCab.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/MeCab/.packlist
Appending installation info to /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/perllocal.pod
参考)MeCab 0.98 のインストール方法
http://www.asahi-net.or.jp/~YW3T-TRNS/namazu/mecab/index.htm
参考)サンプルプログラムなど.
[Perl] MeCab.pm 入ったー!
http://d.hatena.ne.jp/likk/20070428/1177781039