結構大変 まず和布蕪 http://mecab.sourceforge.net/ を tar zxf mecab-0.9+.tar.gz cd mecab-0.9+ ./configure --with-charset=utf8 make sudo make install ここで sudo ldconfig を実行し,libmecab.so を登録しておく. 和布蕪 MecaB の辞書 tar zxf mecab-ipadic-2.7.0-20070****.tar.gz cd mecab-ipadic-2.7.0-20070**** ./configure --with-charset=utf-8 make sudo make install 次に http://chasen.org/~taku/software/TinySVM/ ./configure make make check suso make install 次のようなエラーが出た場合 c++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -O9 -funroll-all-loops - finline -ffast-math -mieee-fp -c param.cpp -fno-common -DPIC -o .libs/param.lo ./getopt.h:131: error: declaration of C function 'int getopt()' conflicts with /usr/include/unistd.h:454: error: previous declaration 'int getopt(int, char* const*, const char*)' here ./src/getopt.hの131行目を以下のように修正 /* extern int getopt (); */ /* こちらがオリジナル */ extern int getopt (int argc, char *const *argv, const char *shortopts); さらに./libtool というスクリプトで archive_cmds から始まる行を探し, その行の \$CC を g++ に変更 # Commands used to build and install a shared archive. archive_cmds="g++ \$(test .\$module = .yes && echo -bundle || echo -dynamiclib) \$allow_undefined_flag -o \$lib \$libobjs \ $deplibs\$linkopts -install_name \$rpath/\$soname \$(test -n \\"\$verstring\\\" -a x\$verstring != x0.0 && echo \$verstring)" この情報は[[ここを参考:http://cl.cs.okayama-u.ac.jp/study/installmemo.html]]にした そして飲茶 YamCha http://chasen.org/~taku/software/yamcha/ ./configure make make check sudo make install ようやく南瓜 Cabocha ./configure make make check # Emacs 上のシェルでは化けまくっていたが sudo make install ただし,南瓜はutf-8を通さないらしい.詳しくは[[日録2007_10月]] 面倒ではあったが,速度は異様に早い.