2009年12月20日

【CentOS5.4】日本語形態素解析MeCabのInstall

 日本語は、漢字かな混じりで文字を空白文字で区切ることなく記載される。その為、その意味や読みを判断するには、何処迄が単語で文節なのかを把握する必要がある。そういったことをやってのける処理のことを形態素解析といい、知名度でいうとkakasi, ChaSenと並び、高性能
謳っているのが、このMeCabだ。
 形態素解析の用途としては、NAMAZUやZope内のCatalogの検索データ作成等の他、自動音声読上げ、点字訳、自動翻訳等々がある。

 現時点で取り立てて用途がある訳ではないが、あって損はないツールなので、今回インストールして置くことにした。実際のインストールは本体と辞書の2つが必要で、さらにPython上で利用する為のモジュールを入れる。実行状況は以下の通り。只、MeCabは、以前標準ではEUC-JPで設定されるので、その当たりを注意して行なう必要がある。正常にインストール出来ると以下の様な処理が可能になる。
 オプションなしの実行では、各単語別に「表層形\t品詞,品詞細分類1,品詞細分類2,品詞細分類3,活用形,活用型,原形,読み,発音」の書式で解析結果を表示する。例えば助詞の「は」と「へ」の部分の発音は「ワ」「ヘ」と解析出来ているので、「WA」「e」として自動音声読上げに活用することが可能となる。

 尚、公式ページの通りのインストール方法は、かつてのLinuxの日本語=EUC-JPという暗黙の了解の上では問題ないが、国際化後の現在のLinuxではUTF-8を標準文字コードとして統一的に対応した方が混乱しないで済むと考えるので、その方向でのインストールとした。詳細は後半の追記エリアに記述しておく。
     


[root@l22dm ~]# mecab
あなたをリゾートへご案内させて頂きます。
あなた 名詞,代名詞,一般,*,*,*,あなた,アナタ,アナタ
を 助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
リゾート 名詞,一般,*,*,*,*,リゾート,リゾート,リゾート
へ 助詞,格助詞,一般,*,*,*,へ,ヘ,エ
ご 接頭詞,名詞接続,*,*,*,*,ご,ゴ,ゴ
案内 名詞,サ変接続,*,*,*,*,案内,アンナイ,アンナイ
さ 動詞,自立,*,*,サ変・スル,未然レル接続,する,サ,サ
せ 動詞,接尾,*,*,一段,連用形,せる,セ,セ
て 助詞,接続助詞,*,*,*,*,て,テ,テ
頂き 動詞,非自立,*,*,五段・カ行イ音便,連用形,頂く,イタダキ,イタダキ
ます 助動詞,*,*,*,特殊・マス,基本形,ます,マス,マス
。 記号,句点,*,*,*,*,。,。,。
EOS

     


[root@l22dm ~]# /usr/local/bin/python2.6
Python 2.6.4 (r264:75706, Nov 5 2009, 23:51:30)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import MeCab
>>> m = MeCab.Tagger()
>>> print m.parse('あなたをリゾートへご案内させて頂きます。')
あなた 名詞,代名詞,一般,*,*,*,あなた,アナタ,アナタ
を 助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
リゾート 名詞,一般,*,*,*,*,リゾート,リゾート,リゾート
へ 助詞,格助詞,一般,*,*,*,へ,ヘ,エ
ご 接頭詞,名詞接続,*,*,*,*,ご,ゴ,ゴ
案内 名詞,サ変接続,*,*,*,*,案内,アンナイ,アンナイ
さ 動詞,自立,*,*,サ変・スル,未然レル接続,する,サ,サ
せ 動詞,接尾,*,*,一段,連用形,せる,セ,セ
て 助詞,接続助詞,*,*,*,*,て,テ,テ
頂き 動詞,非自立,*,*,五段・カ行イ音便,連用形,頂く,イタダキ,イタダキ
ます 助動詞,*,*,*,特殊・マス,基本形,ます,マス,マス
。 記号,句点,*,*,*,*,。,。,。
EOS

>>>
[4]+ Stopped /usr/local/bin/python2.6
[root@l22dm ~]#

mecab本体のインストール
wget http://sourceforge.net/projects/mecab/files/mecab/0.98/mecab-0.98.tar.gz/download
--2009-12-19 19:53:44-- http://sourceforge.net/projects/mecab/files/mecab/0.98/mecab-0.98.tar.gz/download
tar xvzf mecab-0.98.tar.gz
cd mecab-0.98
./configure --with-charset=utf8 --enable-utf8-only
make
make check
make install
※ 「make check」ではエラーが発生するが問題ない様だ。また、既に 別途makeした後に再度make実行したいときは、「make clean」をしてからとなる。
mecab辞書のインストール
wget http://sourceforge.net/projects/mecab/files/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz/download
--2009-12-19 20:14:18-- http://sourceforge.net/projects/mecab/files/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz/download
tar xvzf mecab-ipadic-2.7.0-20070801.tar.gz
cd mecab-ipadic-2.7.0-20070801
./configure --with-charset=utf8
make
make install

mecab-pythonのインストール
wget http://sourceforge.net/projects/mecab/files/mecab-python/0.98/mecab-python-0.98.tar.gz/download
--2009-12-19 19:53:06-- http://sourceforge.net/projects/mecab/files/mecab-python/0.98/mecab-python-0.98.tar.gz/download
tar xvzf mecab-python-0.98.tar.gz
cd mecab-python-0.98
python setup.py build
python setup.py install
「import MeCab」が実行出来れば、OKだが、当方では、次の様にエラーが発生した。
     


[root@l22dm ~]# python
Python 2.6.4 (r264:75706, Nov 5 2009, 23:51:30)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MeCab
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.6/site-packages/MeCab.py", line 25, in
_MeCab = swig_import_helper()
File "/usr/local/lib/python2.6/site-packages/MeCab.py", line 21, in swig_import_helper
_mod = imp.load_module('_MeCab', fp, pathname, description)
ImportError: libmecab.so.1: cannot open shared object file: No such file or directory
 この場合の対策は次の通り。emacs等エディタを使い次のファイルを作成後、「ldconfig」を実行しpathを認識させた。「/usr/local/lib」へのpathくらい始めから既定で通って欲しい気はする。
    /etc/ld.so.conf.d/MeCab.conf


/usr/local/lib


 尚、Tera TermによるSSH接続では問題ないのだが、当方のVNC経由のX環境でのkonsole上では、SCIMを用いたかな漢変換時の出力がダブって入る現象があり、mecabコマンドそのもののハンド利用には課題を抱えている。実務でハンド入力することは先ずないので実害はないが、備忘の為、これも、ここにメモしておく。
     1. MeCab本体のInstall


[root@l22dm ~]# cd DownloadFiles/
[root@l22dm DownloadFiles]# mkdir MeCab
[root@l22dm DownloadFiles]# cd MeCab
[root@l22dm MeCab]# wget http://sourceforge.net/projects/mecab/files/mecab/0.98/mecab-0.98.tar.gz/download
--2009-12-19 19:53:44-- http://sourceforge.net/projects/mecab/files/mecab/0.98/mecab-0.98.tar.gz/download

sourceforge.net をDNSに問いあわせています... 216.34.181.60
sourceforge.net|216.34.181.60|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Found
場所: http://downloads.sourceforge.net/project/mecab/mecab/0.98/mecab-0.98.tar.gz?use_mirror=cdnetworks-kr-1 [続く]
--2009-12-19 19:53:45-- http://downloads.sourceforge.net/project/mecab/mecab/0.98/mecab-0.98.tar.gz?use_mirror=cdnetworks-kr-1
downloads.sourceforge.net をDNSに問いあわせています... 216.34.181.59
downloads.sourceforge.net|216.34.181.59|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Found
場所: http://cdnetworks-kr-1.dl.sourceforge.net/project/mecab/mecab/0.98/mecab-0.98.tar.gz [続く]
--2009-12-19 19:53:45-- http://cdnetworks-kr-1.dl.sourceforge.net/project/mecab/mecab/0.98/mecab-0.98.tar.gz
cdnetworks-kr-1.dl.sourceforge.net をDNSに問いあわせています... 211.39.135.162
cdnetworks-kr-1.dl.sourceforge.net|211.39.135.162|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 1424588 (1.4M) [application/x-gzip]
`mecab-0.98.tar.gz' に保存中

100%[=============================================================>] 1,424,588 110K/s 時間 14s

2009-12-19 19:54:00 (97.3 KB/s) - `mecab-0.98.tar.gz' へ保存完了 [1424588/1424588]

[root@l22dm MeCab]# ls
mecab-0.98.tar.gz
[root@l22dm MeCab]# tar xvzf mecab-0.98.tar.gz
mecab-0.98/
mecab-0.98/example/
mecab-0.98/example/example.c
mecab-0.98/example/example.cpp
mecab-0.98/config.h.in
mecab-0.98/config.guess
mecab-0.98/ChangeLog
mecab-0.98/README
mecab-0.98/LGPL
mecab-0.98/install-sh
mecab-0.98/configure.in
mecab-0.98/Makefile.train
mecab-0.98/mecab-config.in
mecab-0.98/mecabrc.in
mecab-0.98/COPYING
mecab-0.98/aclocal.m4
mecab-0.98/BSD
mecab-0.98/GPL
mecab-0.98/config.sub
mecab-0.98/Makefile.in
mecab-0.98/missing
mecab-0.98/configure
mecab-0.98/src/
mecab-0.98/src/viterbisub.h
mecab-0.98/src/viterbi.h
mecab-0.98/src/writer.cpp
mecab-0.98/src/learner_tagger.cpp
mecab-0.98/src/eval.cpp
mecab-0.98/src/dictionary_rewriter.cpp
mecab-0.98/src/mecab.h
mecab-0.98/src/mecab-dict-index.cpp
mecab-0.98/src/utils.h
mecab-0.98/src/learner_node.h
mecab-0.98/src/freelist.h
mecab-0.98/src/context_id.cpp
mecab-0.98/src/iconv_utils.h
mecab-0.98/src/ucstable.h
mecab-0.98/src/mutex.h
mecab-0.98/src/dictionary.cpp
mecab-0.98/src/mecab-dict-gen.cpp
mecab-0.98/src/dictionary_generator.cpp
mecab-0.98/src/learner_tagger.h
mecab-0.98/src/mempool.h
mecab-0.98/src/connector.cpp
mecab-0.98/src/thread.h
mecab-0.98/src/nbest_generator.cpp
mecab-0.98/src/connector.h
mecab-0.98/src/learner.cpp
mecab-0.98/src/libmecab.cpp
mecab-0.98/src/dictionary_compiler.cpp
mecab-0.98/src/Makefile.in
mecab-0.98/src/tokenizer.h
mecab-0.98/src/feature_index.cpp
mecab-0.98/src/nbest_generator.h
mecab-0.98/src/viterbi.cpp
mecab-0.98/src/tokenizer.cpp
mecab-0.98/src/param.cpp
mecab-0.98/src/context_id.h
mecab-0.98/src/mecab-cost-train.cpp
mecab-0.98/src/mecab-test-gen.cpp
mecab-0.98/src/darts.h
mecab-0.98/src/lbfgs.cpp
mecab-0.98/src/iconv_utils.cpp
mecab-0.98/src/writer.h
mecab-0.98/src/string_buffer.cpp
mecab-0.98/src/make.bat
mecab-0.98/src/char_property.cpp
mecab-0.98/src/param.h
mecab-0.98/src/Makefile.msvc.in
mecab-0.98/src/ucs.h
mecab-0.98/src/string_buffer.h
mecab-0.98/src/char_property.h
mecab-0.98/src/common.h
mecab-0.98/src/utils.cpp
mecab-0.98/src/scoped_ptr.h
mecab-0.98/src/feature_index.h
mecab-0.98/src/mmap.h
mecab-0.98/src/Makefile.am
mecab-0.98/src/mecab.cpp
mecab-0.98/src/stream_wrapper.h
mecab-0.98/src/lbfgs.h
mecab-0.98/src/dictionary.h
mecab-0.98/src/mecab-system-eval.cpp
mecab-0.98/src/tagger.cpp
mecab-0.98/src/dictionary_rewriter.h
mecab-0.98/doc/
mecab-0.98/doc/result.png
mecab-0.98/doc/bindings.html
mecab-0.98/doc/flow.png
mecab-0.98/doc/libmecab.html
mecab-0.98/doc/unk.html
mecab-0.98/doc/dic-detail.html
mecab-0.98/doc/feature.html
mecab-0.98/doc/soft.html
mecab-0.98/doc/index.html
mecab-0.98/doc/mecab.css
mecab-0.98/doc/learn.html
mecab-0.98/doc/Makefile.in
mecab-0.98/doc/mecab.html
mecab-0.98/doc/format.html
mecab-0.98/doc/feature.png
mecab-0.98/doc/doxygen/
mecab-0.98/doc/doxygen/structmecab__path__t.html
mecab-0.98/doc/doxygen/functions_vars.html
mecab-0.98/doc/doxygen/globals_func.html
mecab-0.98/doc/doxygen/structmecab__learner__node__t-members.html
mecab-0.98/doc/doxygen/structmecab__token__t-members.html
mecab-0.98/doc/doxygen/globals_defs.html
mecab-0.98/doc/doxygen/structmecab__learner__path__t-members.html
mecab-0.98/doc/doxygen/structmecab__token__t.html
mecab-0.98/doc/doxygen/namespacemembers.html
mecab-0.98/doc/doxygen/index.html
mecab-0.98/doc/doxygen/mecab_8h.html
mecab-0.98/doc/doxygen/classMeCab_1_1Tagger.html
mecab-0.98/doc/doxygen/mecab_8h-source.html
mecab-0.98/doc/doxygen/structmecab__dictionary__info__t.html
mecab-0.98/doc/doxygen/tab_b.gif
mecab-0.98/doc/doxygen/structmecab__dictionary__info__t-members.html
mecab-0.98/doc/doxygen/structmecab__node__t.html
mecab-0.98/doc/doxygen/structmecab__learner__node__t.html
mecab-0.98/doc/doxygen/structmecab__path__t-members.html
mecab-0.98/doc/doxygen/annotated.html
mecab-0.98/doc/doxygen/tab_l.gif
mecab-0.98/doc/doxygen/tabs.css
mecab-0.98/doc/doxygen/namespaceMeCab.html
mecab-0.98/doc/doxygen/globals_type.html
mecab-0.98/doc/doxygen/namespaces.html
mecab-0.98/doc/doxygen/structmecab__learner__path__t.html
mecab-0.98/doc/doxygen/namespacemembers_func.html
mecab-0.98/doc/doxygen/tab_r.gif
mecab-0.98/doc/doxygen/structmecab__node__t-members.html
mecab-0.98/doc/doxygen/classMeCab_1_1Tagger-members.html
mecab-0.98/doc/doxygen/globals.html
mecab-0.98/doc/doxygen/doxygen.png
mecab-0.98/doc/doxygen/functions.html
mecab-0.98/doc/doxygen/functions_func.html
mecab-0.98/doc/doxygen/namespacemembers_type.html
mecab-0.98/doc/doxygen/files.html
mecab-0.98/doc/doxygen/doxygen.css
mecab-0.98/doc/partial.html
mecab-0.98/doc/posid.html
mecab-0.98/doc/dic.html
mecab-0.98/doc/Makefile.am
mecab-0.98/doc/en/
mecab-0.98/doc/en/bindings.html
mecab-0.98/man/
mecab-0.98/man/mecab.1
mecab-0.98/man/Makefile.in
mecab-0.98/man/Makefile.am
mecab-0.98/AUTHORS
mecab-0.98/config.rpath
mecab-0.98/ltmain.sh
mecab-0.98/NEWS
mecab-0.98/swig/
mecab-0.98/swig/version.h.in
mecab-0.98/swig/version.h
mecab-0.98/swig/Makefile
mecab-0.98/swig/MeCab.i
mecab-0.98/tests/
mecab-0.98/tests/run-dics.sh
mecab-0.98/tests/run-eval.sh
mecab-0.98/tests/katakana/
mecab-0.98/tests/katakana/test.gld
mecab-0.98/tests/katakana/char.def
mecab-0.98/tests/katakana/test
mecab-0.98/tests/katakana/dicrc
mecab-0.98/tests/katakana/unk.def
mecab-0.98/tests/katakana/dic.csv
mecab-0.98/tests/katakana/matrix.def
mecab-0.98/tests/run-cost-train.sh
mecab-0.98/tests/Makefile.in
mecab-0.98/tests/chartype/
mecab-0.98/tests/chartype/test.gld
mecab-0.98/tests/chartype/char.def
mecab-0.98/tests/chartype/test
mecab-0.98/tests/chartype/dicrc
mecab-0.98/tests/chartype/unk.def
mecab-0.98/tests/chartype/dic.csv
mecab-0.98/tests/chartype/matrix.def
mecab-0.98/tests/autolink/
mecab-0.98/tests/autolink/test.gld
mecab-0.98/tests/autolink/char.def
mecab-0.98/tests/autolink/test
mecab-0.98/tests/autolink/dicrc
mecab-0.98/tests/autolink/unk.def
mecab-0.98/tests/autolink/dic.csv
mecab-0.98/tests/autolink/matrix.def
mecab-0.98/tests/t9/
mecab-0.98/tests/t9/test.gld
mecab-0.98/tests/t9/ipadic.pl
mecab-0.98/tests/t9/char.def
mecab-0.98/tests/t9/mkdic.pl
mecab-0.98/tests/t9/test
mecab-0.98/tests/t9/dicrc
mecab-0.98/tests/t9/unk.def
mecab-0.98/tests/t9/dic.csv
mecab-0.98/tests/t9/matrix.def
mecab-0.98/tests/eval/
mecab-0.98/tests/eval/test.gld
mecab-0.98/tests/eval/system
mecab-0.98/tests/eval/answer
mecab-0.98/tests/cost-train/
mecab-0.98/tests/cost-train/test.gld.crf
mecab-0.98/tests/cost-train/dic.gld.hmm
mecab-0.98/tests/cost-train/seed/
mecab-0.98/tests/cost-train/seed/rewrite.def.crf
mecab-0.98/tests/cost-train/seed/char.def
mecab-0.98/tests/cost-train/seed/feature.def
mecab-0.98/tests/cost-train/seed/rewrite.def.hmm
mecab-0.98/tests/cost-train/seed/dicrc
mecab-0.98/tests/cost-train/seed/unk.def
mecab-0.98/tests/cost-train/seed/rewrite.def
mecab-0.98/tests/cost-train/seed/dic.csv
mecab-0.98/tests/cost-train/seed/matrix.def
mecab-0.98/tests/cost-train/dic.gld.crf
mecab-0.98/tests/cost-train/ipa.test
mecab-0.98/tests/cost-train/ipa.train
mecab-0.98/tests/cost-train/test.gld.hmm
mecab-0.98/tests/cost-train/dic.gld
mecab-0.98/tests/ngram/
mecab-0.98/tests/ngram/test.gld
mecab-0.98/tests/ngram/char.def
mecab-0.98/tests/ngram/test
mecab-0.98/tests/ngram/dicrc
mecab-0.98/tests/ngram/unk.def
mecab-0.98/tests/ngram/dic.csv
mecab-0.98/tests/ngram/matrix.def
mecab-0.98/tests/shiin/
mecab-0.98/tests/shiin/test.gld
mecab-0.98/tests/shiin/char.def
mecab-0.98/tests/shiin/mkdic.pl
mecab-0.98/tests/shiin/test
mecab-0.98/tests/shiin/dicrc
mecab-0.98/tests/shiin/unk.def
mecab-0.98/tests/shiin/dic.csv
mecab-0.98/tests/shiin/matrix.def
mecab-0.98/tests/latin/
mecab-0.98/tests/latin/test.gld
mecab-0.98/tests/latin/char.def
mecab-0.98/tests/latin/test
mecab-0.98/tests/latin/dicrc
mecab-0.98/tests/latin/unk.def
mecab-0.98/tests/latin/dic.csv
mecab-0.98/tests/latin/matrix.def
mecab-0.98/tests/Makefile.am
mecab-0.98/mecab.iss.in
mecab-0.98/INSTALL
mecab-0.98/Makefile.am
mecab-0.98/mkinstalldirs
[root@l22dm MeCab]# cd mecab-0.98
[root@l22dm mecab-0.98]# ls
AUTHORS INSTALL NEWS config.rpath example mecab.iss.in swig
BSD LGPL README config.sub install-sh mecabrc.in tests
COPYING Makefile.am aclocal.m4 configure ltmain.sh missing
ChangeLog Makefile.in config.guess configure.in man mkinstalldirs
GPL Makefile.train config.h.in doc mecab-config.in src
[root@l22dm mecab-0.98]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) none
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for library containing strerror... none required
checking whether byte ordering is bigendian... no
checking host system type... (cached) i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... (cached) no
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for sys/stat.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for sys/types.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for sys/types.h... (cached) yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking for off_t... yes
checking for size_t... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking size of size_t... 4
checking for size_t... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for main in -lstdc++... yes
checking for pthread_create in -lpthread... yes
checking for pthread_join in -lpthread... yes
checking for pthread_mutex_lock in -lpthread... yes
checking for iconv_open in -liconv... no
checking for getenv... yes
checking for opendir... yes
checking for setjmp... yes
checking whether make is GNU Make... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports stl (required)... yes
checking if g++ supports template (required)... yes
checking if g++ supports const_cast<> (required)... yes
checking if g++ supports static_cast<> (required)... yes
checking if g++ supports dynamic_cast<> (required)... yes
checking if g++ supports reinterpret_cast<> (required)... yes
checking if g++ supports exception handler (required)... yes
checking if g++ supports namespaces (required) ... yes
checking if g++ environment provides all required features... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/Makefile.msvc
config.status: creating man/Makefile
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: creating swig/version.h
config.status: creating mecab.iss
config.status: creating mecab-config
config.status: creating mecabrc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
[root@l22dm mecab-0.98]# make
make all-recursive
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' に入ります
Making all in src
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/src' に入ります
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o utils.lo utils.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c utils.cpp -fPIC -DPIC -o .libs/utils.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c utils.cpp -o utils.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o eval.lo eval.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c eval.cpp -fPIC -DPIC -o .libs/eval.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c eval.cpp -o eval.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o iconv_utils.lo iconv_utils.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c iconv_utils.cpp -fPIC -DPIC -o .libs/iconv_utils.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c iconv_utils.cpp -o iconv_utils.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o dictionary_rewriter.lo dictionary_rewriter.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c dictionary_rewriter.cpp -fPIC -DPIC -o .libs/dictionary_rewriter.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c dictionary_rewriter.cpp -o dictionary_rewriter.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o dictionary_generator.lo dictionary_generator.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c dictionary_generator.cpp -fPIC -DPIC -o .libs/dictionary_generator.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c dictionary_generator.cpp -o dictionary_generator.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o dictionary_compiler.lo dictionary_compiler.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c dictionary_compiler.cpp -fPIC -DPIC -o .libs/dictionary_compiler.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c dictionary_compiler.cpp -o dictionary_compiler.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o context_id.lo context_id.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c context_id.cpp -fPIC -DPIC -o .libs/context_id.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c context_id.cpp -o context_id.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o connector.lo connector.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c connector.cpp -fPIC -DPIC -o .libs/connector.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c connector.cpp -o connector.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o nbest_generator.lo nbest_generator.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c nbest_generator.cpp -fPIC -DPIC -o .libs/nbest_generator.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c nbest_generator.cpp -o nbest_generator.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o writer.lo writer.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c writer.cpp -fPIC -DPIC -o .libs/writer.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c writer.cpp -o writer.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o string_buffer.lo string_buffer.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c string_buffer.cpp -fPIC -DPIC -o .libs/string_buffer.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c string_buffer.cpp -o string_buffer.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o viterbi.lo viterbi.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c viterbi.cpp -fPIC -DPIC -o .libs/viterbi.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c viterbi.cpp -o viterbi.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o param.lo param.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c param.cpp -fPIC -DPIC -o .libs/param.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c param.cpp -o param.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o tokenizer.lo tokenizer.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c tokenizer.cpp -fPIC -DPIC -o .libs/tokenizer.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c tokenizer.cpp -o tokenizer.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o char_property.lo char_property.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c char_property.cpp -fPIC -DPIC -o .libs/char_property.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c char_property.cpp -o char_property.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o tagger.lo tagger.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c tagger.cpp -fPIC -DPIC -o .libs/tagger.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c tagger.cpp -o tagger.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o dictionary.lo dictionary.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c dictionary.cpp -fPIC -DPIC -o .libs/dictionary.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c dictionary.cpp -o dictionary.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o feature_index.lo feature_index.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c feature_index.cpp -fPIC -DPIC -o .libs/feature_index.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c feature_index.cpp -o feature_index.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o lbfgs.lo lbfgs.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c lbfgs.cpp -fPIC -DPIC -o .libs/lbfgs.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c lbfgs.cpp -o lbfgs.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o learner_tagger.lo learner_tagger.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c learner_tagger.cpp -fPIC -DPIC -o .libs/learner_tagger.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c learner_tagger.cpp -o learner_tagger.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o learner.lo learner.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c learner.cpp -fPIC -DPIC -o .libs/learner.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c learner.cpp -o learner.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o libmecab.lo libmecab.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c libmecab.cpp -fPIC -DPIC -o .libs/libmecab.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -O3 -Wall -c libmecab.cpp -o libmecab.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CXX --mode=link g++ -O3 -Wall -no-undefined -version-info 1:0:0 -o libmecab.la -rpath /usr/local/lib utils.lo eval.lo iconv_utils.lo dictionary_rewriter.lo dictionary_generator.lo dictionary_compiler.lo context_id.lo connector.lo nbest_generator.lo writer.lo string_buffer.lo viterbi.lo param.lo tokenizer.lo char_property.lo tagger.lo dictionary.lo feature_index.lo lbfgs.lo learner_tagger.lo learner.lo libmecab.lo -lpthread -lpthread -lpthread -lstdc++
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbeginS.o .libs/utils.o .libs/eval.o .libs/iconv_utils.o .libs/dictionary_rewriter.o .libs/dictionary_generator.o .libs/dictionary_compiler.o .libs/context_id.o .libs/connector.o .libs/nbest_generator.o .libs/writer.o .libs/string_buffer.o .libs/viterbi.o .libs/param.o .libs/tokenizer.o .libs/char_property.o .libs/tagger.o .libs/dictionary.o .libs/feature_index.o .libs/lbfgs.o .libs/learner_tagger.o .libs/learner.o .libs/libmecab.o -lpthread -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i386-redhat-linux/4.1.2/crtendS.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o -Wl,-soname -Wl,libmecab.so.1 -o .libs/libmecab.so.1.0.0
libtool: link: (cd ".libs" && rm -f "libmecab.so.1" && ln -s "libmecab.so.1.0.0" "libmecab.so.1")
libtool: link: (cd ".libs" && rm -f "libmecab.so" && ln -s "libmecab.so.1.0.0" "libmecab.so")
libtool: link: ar cru .libs/libmecab.a utils.o eval.o iconv_utils.o dictionary_rewriter.o dictionary_generator.o dictionary_compiler.o context_id.o connector.o nbest_generator.o writer.o string_buffer.o viterbi.o param.o tokenizer.o char_property.o tagger.o dictionary.o feature_index.o lbfgs.o learner_tagger.o learner.o libmecab.o
libtool: link: ranlib .libs/libmecab.a
libtool: link: ( cd ".libs" && rm -f "libmecab.la" && ln -s "../libmecab.la" "libmecab.la" )
g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o mecab.o mecab.cpp
/bin/sh ../libtool --tag=CXX --mode=link g++ -O3 -Wall -o mecab mecab.o libmecab.la -lpthread -lpthread -lpthread -lstdc++
libtool: link: g++ -O3 -Wall -o .libs/mecab mecab.o ./.libs/libmecab.so -lpthread -lstdc++ -Wl,-rpath -Wl,/usr/local/lib
g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o mecab-dict-index.o mecab-dict-index.cpp
/bin/sh ../libtool --tag=CXX --mode=link g++ -O3 -Wall -o mecab-dict-index mecab-dict-index.o libmecab.la -lpthread -lpthread -lpthread -lstdc++
libtool: link: g++ -O3 -Wall -o .libs/mecab-dict-index mecab-dict-index.o ./.libs/libmecab.so -lpthread -lstdc++ -Wl,-rpath -Wl,/usr/local/lib
g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o mecab-dict-gen.o mecab-dict-gen.cpp
/bin/sh ../libtool --tag=CXX --mode=link g++ -O3 -Wall -o mecab-dict-gen mecab-dict-gen.o libmecab.la -lpthread -lpthread -lpthread -lstdc++
libtool: link: g++ -O3 -Wall -o .libs/mecab-dict-gen mecab-dict-gen.o ./.libs/libmecab.so -lpthread -lstdc++ -Wl,-rpath -Wl,/usr/local/lib
g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o mecab-cost-train.o mecab-cost-train.cpp
/bin/sh ../libtool --tag=CXX --mode=link g++ -O3 -Wall -o mecab-cost-train mecab-cost-train.o libmecab.la -lpthread -lpthread -lpthread -lstdc++
libtool: link: g++ -O3 -Wall -o .libs/mecab-cost-train mecab-cost-train.o ./.libs/libmecab.so -lpthread -lstdc++ -Wl,-rpath -Wl,/usr/local/lib
g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o mecab-system-eval.o mecab-system-eval.cpp
/bin/sh ../libtool --tag=CXX --mode=link g++ -O3 -Wall -o mecab-system-eval mecab-system-eval.o libmecab.la -lpthread -lpthread -lpthread -lstdc++
libtool: link: g++ -O3 -Wall -o .libs/mecab-system-eval mecab-system-eval.o ./.libs/libmecab.so -lpthread -lstdc++ -Wl,-rpath -Wl,/usr/local/lib
g++ -DHAVE_CONFIG_H -I. -I.. -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="\"/usr/local/etc/mecabrc\"" -O3 -Wall -c -o mecab-test-gen.o mecab-test-gen.cpp
/bin/sh ../libtool --tag=CXX --mode=link g++ -O3 -Wall -o mecab-test-gen mecab-test-gen.o libmecab.la -lpthread -lpthread -lpthread -lstdc++
libtool: link: g++ -O3 -Wall -o .libs/mecab-test-gen mecab-test-gen.o ./.libs/libmecab.so -lpthread -lstdc++ -Wl,-rpath -Wl,/usr/local/lib
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/src' から出ます
Making all in man
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/man' に入ります
make[2]: `all' に対して行うべき事はありません.
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/man' から出ます
Making all in doc
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/doc' に入ります
make[2]: `all' に対して行うべき事はありません.
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/doc' から出ます
Making all in tests
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' に入ります
make[2]: `all' に対して行うべき事はありません.
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' から出ます
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' に入ります
make[2]: `all-am' に対して行うべき事はありません.
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' から出ます
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' から出ます
[root@l22dm mecab-0.98]# make check
Making check in src
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/src' に入ります
make[1]: `check' に対して行うべき事はありません.
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/src' から出ます
Making check in man
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/man' に入ります
make[1]: `check' に対して行うべき事はありません.
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/man' から出ます
Making check in doc
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/doc' に入ります
make[1]: `check' に対して行うべき事はありません.
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/doc' から出ます
Making check in tests
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' に入ります
make check-TESTS
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' に入ります
./pos-id.def is not found. minimum setting is used
reading ./unk.def ... 2
emitting double-array: 100% |###########################################|
./pos-id.def is not found. minimum setting is used
reading ./dic.csv ... 177
emitting double-array: 100% |###########################################|
reading ./matrix.def ... 178x178
emitting matrix : 100% |###########################################|

done!
./pos-id.def is not found. minimum setting is used
reading ./unk.def ... 2
emitting double-array: 100% |###########################################|
./pos-id.def is not found. minimum setting is used
reading ./dic.csv ... 83
emitting double-array: 100% |###########################################|
reading ./matrix.def ... 84x84
emitting matrix : 100% |###########################################|

done!
./pos-id.def is not found. minimum setting is used
reading ./unk.def ... 2
emitting double-array: 100% |###########################################|
./pos-id.def is not found. minimum setting is used
reading ./dic.csv ... 450
emitting double-array: 100% |###########################################|
reading ./matrix.def ... 1x1

done!
./pos-id.def is not found. minimum setting is used
reading ./unk.def ... 2
emitting double-array: 100% |###########################################|
./pos-id.def is not found. minimum setting is used
reading ./dic.csv ... 162
emitting double-array: 100% |###########################################|
reading ./matrix.def ... 3x3
emitting matrix : 100% |###########################################|

done!
./pos-id.def is not found. minimum setting is used
reading ./unk.def ... 2
emitting double-array: 100% |###########################################|
./pos-id.def is not found. minimum setting is used
reading ./dic.csv ... 4
emitting double-array: 100% |###########################################|
reading ./matrix.def ... 1x1

done!
./pos-id.def is not found. minimum setting is used
reading ./unk.def ... 11
emitting double-array: 100% |###########################################|
./pos-id.def is not found. minimum setting is used
reading ./dic.csv ... 1
reading ./matrix.def ... 1x1

done!
./pos-id.def is not found. minimum setting is used
reading ./unk.def ... 2
emitting double-array: 100% |###########################################|
./pos-id.def is not found. minimum setting is used
reading ./dic.csv ... 1
reading ./matrix.def ... 1x1

done!
PASS: run-dics.sh
PASS: run-eval.sh
seed/pos-id.def is not found. minimum setting is used
reading seed/unk.def ... 40
emitting double-array: 100% |###########################################|
seed/pos-id.def is not found. minimum setting is used
reading seed/dic.csv ... 4335
emitting double-array: 100% |###########################################|
reading seed/matrix.def ... 1x1

done!
reading corpus ...
Number of sentences: 34
Number of features: 64108
eta: 0.00100
freq: 1
threads: 1
C(sigma^2): 1.00000

iter=0 err=1.00000 F=0.36000 target=2406.28355 diff=1.00000
iter=1 err=0.97059 F=0.65652 target=1464.09898 diff=0.39155
iter=2 err=0.94118 F=0.77660 target=821.40490 diff=0.43897
iter=3 err=0.85294 F=0.89551 target=561.04560 diff=0.31697
iter=4 err=0.58824 F=0.95579 target=324.25438 diff=0.42205
iter=5 err=0.47059 F=0.97485 target=237.44287 diff=0.26773
iter=6 err=0.35294 F=0.98436 target=176.87195 diff=0.25510
iter=7 err=0.17647 F=0.99218 target=154.00104 diff=0.12931
iter=8 err=0.08824 F=0.99665 target=142.72996 diff=0.07319
iter=9 err=0.05882 F=0.99665 target=140.25693 diff=0.01733
iter=10 err=0.02941 F=0.99888 target=137.29959 diff=0.02109
iter=11 err=0.02941 F=0.99888 target=134.83042 diff=0.01798
iter=12 err=0.00000 F=1.00000 target=133.00570 diff=0.01353
iter=13 err=0.00000 F=1.00000 target=133.12927 diff=0.00093
iter=14 err=0.00000 F=1.00000 target=132.39525 diff=0.00551
iter=15 err=0.00000 F=1.00000 target=131.82645 diff=0.00430
iter=16 err=0.00000 F=1.00000 target=131.60329 diff=0.00169
iter=17 err=0.00000 F=1.00000 target=131.33506 diff=0.00204
iter=18 err=0.00000 F=1.00000 target=131.27851 diff=0.00043
iter=19 err=0.00000 F=1.00000 target=131.14245 diff=0.00104
iter=20 err=0.00000 F=1.00000 target=131.10228 diff=0.00031
iter=21 err=0.00000 F=1.00000 target=131.06503 diff=0.00028
iter=22 err=0.00000 F=1.00000 target=131.06110 diff=0.00003

Done! writing model file ...
reading seed/unk.def ... 40
reading seed/dic.csv ... 4335
emitting model-ipadic.c1.0.f1.dic/left-id.def/ model-ipadic.c1.0.f1.dic/right-id.def
emitting model-ipadic.c1.0.f1.dic/unk.def ... 40
emitting model-ipadic.c1.0.f1.dic/dic.csv ... 4335
emitting matrix : 100% |###########################################|
copying seed/char.def to model-ipadic.c1.0.f1.dic/char.def
copying seed/rewrite.def to model-ipadic.c1.0.f1.dic/rewrite.def
copying seed/dicrc to model-ipadic.c1.0.f1.dic/dicrc
copying seed/feature.def to model-ipadic.c1.0.f1.dic/feature.def

done!
model-ipadic.c1.0.f1.dic/pos-id.def is not found. minimum setting is used
reading model-ipadic.c1.0.f1.dic/unk.def ... 40
emitting double-array: 100% |###########################################|
model-ipadic.c1.0.f1.dic/pos-id.def is not found. minimum setting is used
reading model-ipadic.c1.0.f1.dic/dic.csv ... 4335
emitting double-array: 100% |###########################################|
reading model-ipadic.c1.0.f1.dic/matrix.def ... 346x346
emitting matrix : 100% |###########################################|

done!
precision recall F
LEVEL 0: 12.8959(57/442) 11.8998(57/479) 12.3779
LEVEL 1: 12.2172(54/442) 11.2735(54/479) 11.7264
LEVEL 2: 11.7647(52/442) 10.8559(52/479) 11.2921
LEVEL 4: 11.7647(52/442) 10.8559(52/479) 11.2921
seed/pos-id.def is not found. minimum setting is used
reading seed/unk.def ... 40
emitting double-array: 100% |###########################################|
seed/pos-id.def is not found. minimum setting is used
reading seed/dic.csv ... 4335
emitting double-array: 100% |###########################################|
reading seed/matrix.def ... 1x1

done!
reading seed/dic.csv ...

Done!
reading seed/unk.def ... 40
reading seed/dic.csv ... 4335
emitting model-ipadic.c1.0.f1.dic/left-id.def/ model-ipadic.c1.0.f1.dic/right-id.def
emitting model-ipadic.c1.0.f1.dic/unk.def ... 40
emitting model-ipadic.c1.0.f1.dic/dic.csv ... 4335
emitting matrix : 100% |###########################################|
copying seed/char.def to model-ipadic.c1.0.f1.dic/char.def
copying seed/rewrite.def to model-ipadic.c1.0.f1.dic/rewrite.def
copying seed/dicrc to model-ipadic.c1.0.f1.dic/dicrc

done!
model-ipadic.c1.0.f1.dic/pos-id.def is not found. minimum setting is used
reading model-ipadic.c1.0.f1.dic/unk.def ... 40
emitting double-array: 100% |###########################################|
model-ipadic.c1.0.f1.dic/pos-id.def is not found. minimum setting is used
reading model-ipadic.c1.0.f1.dic/dic.csv ... 4335
emitting double-array: 100% |###########################################|
reading model-ipadic.c1.0.f1.dic/matrix.def ... 162x234
emitting matrix : 100% |###########################################|

done!
precision recall F
LEVEL 0: 12.0181(53/441) 11.0647(53/479) 11.5217
LEVEL 1: 10.4308(46/441) 9.6033(46/479) 10.0000
LEVEL 2: 9.9773(44/441) 9.1858(44/479) 9.5652
LEVEL 4: 9.9773(44/441) 9.1858(44/479) 9.5652
PASS: run-cost-train.sh
==================
All 3 tests passed
==================
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' から出ます
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' から出ます
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' に入ります
make[1]: `check-am' に対して行うべき事はありません.
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' から出ます
[root@l22dm mecab-0.98]# make install
Making install in src
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/src' に入ります
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/src' に入ります
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'libmecab.la' '/usr/local/lib/libmecab.la'
libtool: install: /usr/bin/install -c .libs/libmecab.so.1.0.0 /usr/local/lib/libmecab.so.1.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libmecab.so.1.0.0 libmecab.so.1 || { rm -f libmecab.so.1 && ln -s libmecab.so.1.0.0 libmecab.so.1; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libmecab.so.1.0.0 libmecab.so || { rm -f libmecab.so && ln -s libmecab.so.1.0.0 libmecab.so; }; })
libtool: install: /usr/bin/install -c .libs/libmecab.lai /usr/local/lib/libmecab.la
libtool: install: /usr/bin/install -c .libs/libmecab.a /usr/local/lib/libmecab.a
libtool: install: chmod 644 /usr/local/lib/libmecab.a
libtool: install: ranlib /usr/local/lib/libmecab.a
libtool: finish: PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'mecab' '/usr/local/bin/mecab'
libtool: install: /usr/bin/install -c .libs/mecab /usr/local/bin/mecab
test -z "/usr/local/libexec/mecab" || /bin/mkdir -p "/usr/local/libexec/mecab"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'mecab-dict-index' '/usr/local/libexec/mecab/mecab-dict-index'
libtool: install: /usr/bin/install -c .libs/mecab-dict-index /usr/local/libexec/mecab/mecab-dict-index
/bin/sh ../libtool --mode=install /usr/bin/install -c 'mecab-dict-gen' '/usr/local/libexec/mecab/mecab-dict-gen'
libtool: install: /usr/bin/install -c .libs/mecab-dict-gen /usr/local/libexec/mecab/mecab-dict-gen
/bin/sh ../libtool --mode=install /usr/bin/install -c 'mecab-cost-train' '/usr/local/libexec/mecab/mecab-cost-train'
libtool: install: /usr/bin/install -c .libs/mecab-cost-train /usr/local/libexec/mecab/mecab-cost-train
/bin/sh ../libtool --mode=install /usr/bin/install -c 'mecab-system-eval' '/usr/local/libexec/mecab/mecab-system-eval'
libtool: install: /usr/bin/install -c .libs/mecab-system-eval /usr/local/libexec/mecab/mecab-system-eval
/bin/sh ../libtool --mode=install /usr/bin/install -c 'mecab-test-gen' '/usr/local/libexec/mecab/mecab-test-gen'
libtool: install: /usr/bin/install -c .libs/mecab-test-gen /usr/local/libexec/mecab/mecab-test-gen
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 'mecab.h' '/usr/local/include/mecab.h'
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/src' から出ます
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/src' から出ます
Making install in man
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/man' に入ります
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/man' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 'mecab.1' '/usr/local/share/man/man1/mecab.1'
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/man' から出ます
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/man' から出ます
Making install in doc
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/doc' に入ります
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/doc' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
make[2]: `install-data-am' に対して行うべき事はありません.
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/doc' から出ます
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/doc' から出ます
Making install in tests
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' に入ります
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
make[2]: `install-data-am' に対して行うべき事はありません.
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' から出ます
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98/tests' から出ます
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' に入ります
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' に入ります
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c 'mecab-config' '/usr/local/bin/mecab-config'
test -z "/usr/local/etc" || /bin/mkdir -p "/usr/local/etc"
/usr/bin/install -c -m 644 'mecabrc' '/usr/local/etc/mecabrc'
make[2]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' から出ます
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-0.98' から出ます
[root@l22dm mecab-0.98]#

     2. MeCabの辞書


[root@l22dm ~]# cd DownloadFiles/MeCab/
[root@l22dm MeCab]# ls
mecab-0.98 mecab-0.98.tar.gz mecab-python-0.98.tar.gz
[root@l22dm MeCab]# wget http://sourceforge.net/projects/mecab/files/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz/download
--2009-12-19 20:14:18-- http://sourceforge.net/projects/mecab/files/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz/download
sourceforge.net をDNSに問いあわせています... 216.34.181.60
sourceforge.net|216.34.181.60|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Found
場所: http://downloads.sourceforge.net/project/mecab/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz?use_mirror=cdnetworks-kr-1 [続く]
--2009-12-19 20:14:19-- http://downloads.sourceforge.net/project/mecab/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz?use_mirror=cdnetworks-kr-1
downloads.sourceforge.net をDNSに問いあわせています... 216.34.181.59
downloads.sourceforge.net|216.34.181.59|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Found
場所: http://cdnetworks-kr-1.dl.sourceforge.net/project/mecab/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz [続く]
--2009-12-19 20:14:19-- http://cdnetworks-kr-1.dl.sourceforge.net/project/mecab/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz
cdnetworks-kr-1.dl.sourceforge.net をDNSに問いあわせています... 211.39.135.162
cdnetworks-kr-1.dl.sourceforge.net|211.39.135.162|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 12208105 (12M) [application/x-gzip]
`mecab-ipadic-2.7.0-20070801.tar.gz' に保存中

100%[=============================================================>] 12,208,105 44.4K/s 時間 2m 26s

2009-12-19 20:16:46 (81.5 KB/s) - `mecab-ipadic-2.7.0-20070801.tar.gz' へ保存完了 [12208105/12208105]

[root@l22dm MeCab]# tar xvzf mecab-ipadic-2.7.0-20070801.tar.gz
mecab-ipadic-2.7.0-20070801/
mecab-ipadic-2.7.0-20070801/README
mecab-ipadic-2.7.0-20070801/AUTHORS
mecab-ipadic-2.7.0-20070801/COPYING
mecab-ipadic-2.7.0-20070801/ChangeLog
mecab-ipadic-2.7.0-20070801/INSTALL
mecab-ipadic-2.7.0-20070801/Makefile.am
mecab-ipadic-2.7.0-20070801/Makefile.in
mecab-ipadic-2.7.0-20070801/NEWS
mecab-ipadic-2.7.0-20070801/aclocal.m4
mecab-ipadic-2.7.0-20070801/config.guess
mecab-ipadic-2.7.0-20070801/config.sub
mecab-ipadic-2.7.0-20070801/configure
mecab-ipadic-2.7.0-20070801/configure.in
mecab-ipadic-2.7.0-20070801/install-sh
mecab-ipadic-2.7.0-20070801/missing
mecab-ipadic-2.7.0-20070801/mkinstalldirs
mecab-ipadic-2.7.0-20070801/Adj.csv
mecab-ipadic-2.7.0-20070801/Adnominal.csv
mecab-ipadic-2.7.0-20070801/Adverb.csv
mecab-ipadic-2.7.0-20070801/Auxil.csv
mecab-ipadic-2.7.0-20070801/Conjunction.csv
mecab-ipadic-2.7.0-20070801/Filler.csv
mecab-ipadic-2.7.0-20070801/Interjection.csv
mecab-ipadic-2.7.0-20070801/Noun.adjv.csv
mecab-ipadic-2.7.0-20070801/Noun.adverbal.csv
mecab-ipadic-2.7.0-20070801/Noun.csv
mecab-ipadic-2.7.0-20070801/Noun.demonst.csv
mecab-ipadic-2.7.0-20070801/Noun.nai.csv
mecab-ipadic-2.7.0-20070801/Noun.name.csv
mecab-ipadic-2.7.0-20070801/Noun.number.csv
mecab-ipadic-2.7.0-20070801/Noun.org.csv
mecab-ipadic-2.7.0-20070801/Noun.others.csv
mecab-ipadic-2.7.0-20070801/Noun.place.csv
mecab-ipadic-2.7.0-20070801/Noun.proper.csv
mecab-ipadic-2.7.0-20070801/Noun.verbal.csv
mecab-ipadic-2.7.0-20070801/Others.csv
mecab-ipadic-2.7.0-20070801/Postp-col.csv
mecab-ipadic-2.7.0-20070801/Postp.csv
mecab-ipadic-2.7.0-20070801/Prefix.csv
mecab-ipadic-2.7.0-20070801/Suffix.csv
mecab-ipadic-2.7.0-20070801/Symbol.csv
mecab-ipadic-2.7.0-20070801/Verb.csv
mecab-ipadic-2.7.0-20070801/char.def
mecab-ipadic-2.7.0-20070801/feature.def
mecab-ipadic-2.7.0-20070801/left-id.def
mecab-ipadic-2.7.0-20070801/matrix.def
mecab-ipadic-2.7.0-20070801/pos-id.def
mecab-ipadic-2.7.0-20070801/rewrite.def
mecab-ipadic-2.7.0-20070801/right-id.def
mecab-ipadic-2.7.0-20070801/unk.def
mecab-ipadic-2.7.0-20070801/dicrc
mecab-ipadic-2.7.0-20070801/RESULT
[root@l22dm MeCab]# cd mecab-ipadic-2.7.0-20070801
[root@l22dm mecab-ipadic-2.7.0-20070801]# ls
AUTHORS INSTALL Noun.nai.csv Postp-col.csv char.def matrix.def
Adj.csv Interjection.csv Noun.name.csv Postp.csv config.guess missing
Adnominal.csv Makefile.am Noun.number.csv Prefix.csv config.sub mkinstalldirs
Adverb.csv Makefile.in Noun.org.csv README configure pos-id.def
Auxil.csv NEWS Noun.others.csv RESULT configure.in rewrite.def
COPYING Noun.adjv.csv Noun.place.csv Suffix.csv dicrc right-id.def
ChangeLog Noun.adverbal.csv Noun.proper.csv Symbol.csv feature.def unk.def
Conjunction.csv Noun.csv Noun.verbal.csv Verb.csv install-sh
Filler.csv Noun.demonst.csv Others.csv aclocal.m4 left-id.def
[root@l22dm mecab-ipadic-2.7.0-20070801]# ./configure --with-charset=utf8
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a BSD-compatible install... /usr/bin/install -c
checking for mecab-config... /usr/local/bin/mecab-config
configure: creating ./config.status
config.status: creating Makefile
[root@l22dm mecab-ipadic-2.7.0-20070801]# make
/usr/local/libexec/mecab/mecab-dict-index -d . -o . -f EUC-JP -t utf8
reading ./unk.def ... 40
emitting double-array: 100% |###########################################|
reading ./Suffix.csv ... 1393
reading ./Interjection.csv ... 252
reading ./Noun.csv ... 60477
reading ./Others.csv ... 2
reading ./Noun.proper.csv ... 27327
reading ./Auxil.csv ... 199
reading ./Noun.adverbal.csv ... 795
reading ./Prefix.csv ... 221
reading ./Noun.place.csv ... 72999
reading ./Noun.verbal.csv ... 12146
reading ./Noun.name.csv ... 34202
reading ./Adverb.csv ... 3032
reading ./Filler.csv ... 19
reading ./Conjunction.csv ... 171
reading ./Noun.adjv.csv ... 3328
reading ./Noun.number.csv ... 42
reading ./Adnominal.csv ... 135
reading ./Noun.org.csv ... 16668
reading ./Verb.csv ... 130750
reading ./Symbol.csv ... 208
reading ./Postp.csv ... 146
reading ./Noun.nai.csv ... 42
reading ./Noun.demonst.csv ... 120
reading ./Adj.csv ... 27210
reading ./Postp-col.csv ... 91
reading ./Noun.others.csv ... 151
emitting double-array: 100% |###########################################|
reading ./matrix.def ... 1316x1316
emitting matrix : 100% |###########################################|

done!
echo To enable dictionary, rewrite /usr/local/etc/mecabrc as \"dicrc = /usr/local/lib/mecab/dic/ipadic\"
To enable dictionary, rewrite /usr/local/etc/mecabrc as "dicrc = /usr/local/lib/mecab/dic/ipadic"
[root@l22dm mecab-ipadic-2.7.0-20070801]# make install
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-ipadic-2.7.0-20070801' に入ります
make[1]: `install-exec-am' に対して行うべき事はありません.
/bin/sh ./mkinstalldirs /usr/local/lib/mecab/dic/ipadic
/usr/bin/install -c -m 644 ./matrix.bin /usr/local/lib/mecab/dic/ipadic/matrix.bin
/usr/bin/install -c -m 644 ./char.bin /usr/local/lib/mecab/dic/ipadic/char.bin
/usr/bin/install -c -m 644 ./sys.dic /usr/local/lib/mecab/dic/ipadic/sys.dic
/usr/bin/install -c -m 644 ./unk.dic /usr/local/lib/mecab/dic/ipadic/unk.dic
/usr/bin/install -c -m 644 ./left-id.def /usr/local/lib/mecab/dic/ipadic/left-id.def
/usr/bin/install -c -m 644 ./right-id.def /usr/local/lib/mecab/dic/ipadic/right-id.def
/usr/bin/install -c -m 644 ./rewrite.def /usr/local/lib/mecab/dic/ipadic/rewrite.def
/usr/bin/install -c -m 644 ./pos-id.def /usr/local/lib/mecab/dic/ipadic/pos-id.def
/usr/bin/install -c -m 644 ./dicrc /usr/local/lib/mecab/dic/ipadic/dicrc
make[1]: ディレクトリ `/root/DownloadFiles/MeCab/mecab-ipadic-2.7.0-20070801' から出ます
[root@l22dm mecab-ipadic-2.7.0-20070801]#

     mecab-pythonのインストール


[root@l22dm ~]# cd DownloadFiles/
[root@l22dm DownloadFiles]# ls
Firebird Python-2.6.4.tgz Python-3.1.1.tgz typescript
Python-2.6.4 Python-3.1.1 ZWiki-2.0b1.tgz webmin-1.490-1.noarch.rpm
[root@l22dm DownloadFiles]# mkdir MeCab
[root@l22dm DownloadFiles]# cd MeCab/
[root@l22dm MeCab]# wget http://sourceforge.net/projects/mecab/files/mecab-python/0.98/mecab-python-0.98.tar.gz/download
--2009-12-19 19:53:06-- http://sourceforge.net/projects/mecab/files/mecab-python/0.98/mecab-python-0.98.tar.gz/download
sourceforge.net をDNSに問いあわせています... 216.34.181.60
sourceforge.net|216.34.181.60|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Found
場所: http://downloads.sourceforge.net/project/mecab/mecab-python/0.98/mecab-python-0.98.tar.gz?use_mirror=cdnetworks-kr-2 [続く]
--2009-12-19 19:53:07-- http://downloads.sourceforge.net/project/mecab/mecab-python/0.98/mecab-python-0.98.tar.gz?use_mirror=cdnetworks-kr-2
downloads.sourceforge.net をDNSに問いあわせています... 216.34.181.59
downloads.sourceforge.net|216.34.181.59|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Found
場所: http://cdnetworks-kr-2.dl.sourceforge.net/project/mecab/mecab-python/0.98/mecab-python-0.98.tar.gz [続く]
--2009-12-19 19:53:08-- http://cdnetworks-kr-2.dl.sourceforge.net/project/mecab/mecab-python/0.98/mecab-python-0.98.tar.gz
cdnetworks-kr-2.dl.sourceforge.net をDNSに問いあわせています... 211.39.135.163
cdnetworks-kr-2.dl.sourceforge.net|211.39.135.163|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 51651 (50K) [application/x-gzip]
`mecab-python-0.98.tar.gz' に保存中

100%[=============================================================>] 51,651 42.8K/s 時間 1.2s

2009-12-19 19:53:10 (42.8 KB/s) - `mecab-python-0.98.tar.gz' へ保存完了 [51651/51651]

mecab-0.98.tar.gz mecab-ipadic-2.7.0-20070801.tar.gz
[root@l22dm MeCab]# tar xvzf mecab-python-0.98.tar.gz
mecab-python-0.98/
mecab-python-0.98/bindings.html
mecab-python-0.98/MeCab.py
mecab-python-0.98/setup.py
mecab-python-0.98/README
mecab-python-0.98/LGPL
mecab-python-0.98/COPYING
mecab-python-0.98/BSD
mecab-python-0.98/GPL
mecab-python-0.98/test.py
mecab-python-0.98/AUTHORS
mecab-python-0.98/MeCab_wrap.cxx
[root@l22dm MeCab]# cd mecab-python-0.98
[root@l22dm mecab-python-0.98]# /usr/local/bin/python2.6 setup.py build
running build
running build_py
running build_ext
[root@l22dm mecab-python-0.98]# /usr/local/bin/python2.6 setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.6
copying MeCab.py -> build/lib.linux-i686-2.6
running build_ext
building '_MeCab' extension
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/local/include/python2.6 -c MeCab_wrap.cxx -o build/temp.linux-i686-2.6/MeCab_wrap.o
cc1plus: 警告: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
g++ -pthread -shared build/temp.linux-i686-2.6/MeCab_wrap.o -L/usr/local/lib -lmecab -lstdc++ -o build/lib.linux-i686-2.6/_MeCab.so
running install_lib
copying build/lib.linux-i686-2.6/_MeCab.so -> /usr/local/lib/python2.6/site-packages
copying build/lib.linux-i686-2.6/MeCab.py -> /usr/local/lib/python2.6/site-packages
byte-compiling /usr/local/lib/python2.6/site-packages/MeCab.py to MeCab.pyc
running install_egg_info
Writing /usr/local/lib/python2.6/site-packages/mecab_python-0.98-py2.6.egg-info
[root@l22dm mecab-python-0.98]# /usr/local/bin/python2.6
Python 2.6.4 (r264:75706, Nov 5 2009, 23:51:30)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MeCab
Traceback (most recent call last):
File "", line 1, in
File "MeCab.py", line 25, in
_MeCab = swig_import_helper()
File "MeCab.py", line 17, in swig_import_helper
import _MeCab
ImportError: libmecab.so.1: cannot open shared object file: No such file or directory
[root@l22dm mecab-python-0.98]# find / -name libmecab.so.1
/usr/local/lib/libmecab.so.1

[root@l22dm mecab-python-0.98]# emacs /etc/ld.so.conf.d/MeCab.conf
/usr/local/lib
[root@l22dm mecab-python-0.98]# ldconfig
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import MeCab
>>> m = MeCab.Tagger()
>>> print m.parse('あなたをリゾートへご案内させて頂きます。')
あなた 名詞,代名詞,一般,*,*,*,あなた,アナタ,アナタ
を 助詞,格助詞,一般,*,*,*,を,ヲ,ヲ
リゾート 名詞,一般,*,*,*,*,リゾート,リゾート,リゾート
へ 助詞,格助詞,一般,*,*,*,へ,ヘ,エ
ご 接頭詞,名詞接続,*,*,*,*,ご,ゴ,ゴ
案内 名詞,サ変接続,*,*,*,*,案内,アンナイ,アンナイ
さ 動詞,自立,*,*,サ変・スル,未然レル接続,する,サ,サ
せ 動詞,接尾,*,*,一段,連用形,せる,セ,セ
て 助詞,接続助詞,*,*,*,*,て,テ,テ
頂き 動詞,非自立,*,*,五段・カ行イ音便,連用形,頂く,イタダキ,イタダキ
ます 助動詞,*,*,*,特殊・マス,基本形,ます,マス,マス
。 記号,句点,*,*,*,*,。,。,。
EOS

>>>
posted by Mire at 10:09 | Comment(0) | TrackBack(0) | Linux | このブログの読者になる | 更新情報をチェックする
この記事へのコメント
コメントを書く
お名前:

メールアドレス:

ホームページアドレス:

コメント:

認証コード: [必須入力]


※画像の中の文字を半角で入力してください。
※ブログオーナーが承認したコメントのみ表示されます。

この記事へのトラックバック
月額見放題1,000円開始キャンペーンバナー(画像ありver)
紺碧の艦隊 ルパン三世 GREAT CHASE クリックプロモーション
<< 2013年01月 >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
カテゴリ
タグクラウド
ファン
利用中のオープンソース
最近のコメント
最近の記事
過去ログ
QRコード
レガシーなアプリはいかが?
Dell 法人のお客様ページ
  • 【法人様向け】デル、お得なキャンペーン情報
  • 法人のお客様向け ストレージソリューション
  • 法人のお客様向け ネットワークソリューション
  • 【SOHO法人様向け】デル・オンライン広告限定ページ
  • デル-個人のお客様ページ
  • 【個人のお客様向け】デル・オンライン広告限定ページ
  • オンライン広告限定キャンペーンページ
  • ソフトウェア&周辺機器 パソコン工房
    ツートップインターネットショップ(twotop.co.jp) マウスコンピューター/G-Tune
  • ×

    この広告は1年以上新しい記事の投稿がないブログに表示されております。