mecabのインストールでハマりました
gemのmecab-ruby(0.98)が入っているRailsアプリでbundle installをしようとすると以下のログが流れた。
Using mecab-ruby (0.98) from git://github.com/actindi/mecab-ruby-gem.git (at master) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/retina_koji/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb checking for main() in -lmecab... yes checking for main() in -lstdc++... yes checking for mecab.h... yes creating Makefile make compiling MeCab_wrap.cpp MeCab_wrap.cpp: In function ‘const mecab_node_t* mecab_node_t_begin_node_list(mecab_node_t*, size_t)’: MeCab_wrap.cpp:2085: error: ‘struct mecab_node_t’ has no member named ‘sentence_length’ MeCab_wrap.cpp:2087: error: ‘struct mecab_node_t’ has no member named ‘begin_node_list’ MeCab_wrap.cpp:2088: error: ‘struct mecab_node_t’ has no member named ‘begin_node_list’ MeCab_wrap.cpp: In function ‘const mecab_node_t* mecab_node_t_end_node_list(mecab_node_t*, size_t)’: MeCab_wrap.cpp:2093: error: ‘struct mecab_node_t’ has no member named ‘sentence_length’ MeCab_wrap.cpp:2095: error: ‘struct mecab_node_t’ has no member named ‘end_node_list’ MeCab_wrap.cpp:2096: error: ‘struct mecab_node_t’ has no member named ‘end_node_list’ MeCab_wrap.cpp: In function ‘VALUE _wrap_DictionaryInfo_filename_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2229: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_DictionaryInfo_charset_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2253: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_DictionaryInfo_size_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2286: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_DictionaryInfo_type_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2310: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_DictionaryInfo_lsize_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2334: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_DictionaryInfo_rsize_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2358: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_DictionaryInfo_version_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2382: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_DictionaryInfo_next_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2406: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_new_DictionaryInfo(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2447: warning: format not a string literal and no format arguments MeCab_wrap.cpp:2450: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Path_rnode_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2479: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Path_rnext_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2503: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Path_lnode_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2527: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Path_lnext_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2551: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Path_cost_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2575: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Path_prob_set(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2600: warning: format not a string literal and no format arguments MeCab_wrap.cpp:2605: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Path_prob_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2628: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Token_lcAttr_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2643: error: ‘mecab_token_t’ was not declared in this scope MeCab_wrap.cpp:2643: error: ‘arg1’ was not declared in this scope MeCab_wrap.cpp:2643: error: expected primary-expression before ‘)’ token MeCab_wrap.cpp:2643: error: expected `;' before numeric constant MeCab_wrap.cpp:2654: warning: format not a string literal and no format arguments MeCab_wrap.cpp:2656: error: expected type-specifier before ‘mecab_token_t’ MeCab_wrap.cpp:2656: error: expected `>' before ‘mecab_token_t’ MeCab_wrap.cpp:2656: error: expected `(' before ‘mecab_token_t’ MeCab_wrap.cpp:2656: error: expected primary-expression before ‘>’ token MeCab_wrap.cpp:2656: error: expected `)' before ‘;’ token MeCab_wrap.cpp: In function ‘VALUE _wrap_Token_rcAttr_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2667: error: ‘mecab_token_t’ was not declared in this scope MeCab_wrap.cpp:2667: error: ‘arg1’ was not declared in this scope MeCab_wrap.cpp:2667: error: expected primary-expression before ‘)’ token MeCab_wrap.cpp:2667: error: expected `;' before numeric constant MeCab_wrap.cpp:2678: warning: format not a string literal and no format arguments MeCab_wrap.cpp:2680: error: expected type-specifier before ‘mecab_token_t’ MeCab_wrap.cpp:2680: error: expected `>' before ‘mecab_token_t’ MeCab_wrap.cpp:2680: error: expected `(' before ‘mecab_token_t’ MeCab_wrap.cpp:2680: error: expected primary-expression before ‘>’ token MeCab_wrap.cpp:2680: error: expected `)' before ‘;’ token MeCab_wrap.cpp: In function ‘VALUE _wrap_Token_posid_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2691: error: ‘mecab_token_t’ was not declared in this scope MeCab_wrap.cpp:2691: error: ‘arg1’ was not declared in this scope MeCab_wrap.cpp:2691: error: expected primary-expression before ‘)’ token MeCab_wrap.cpp:2691: error: expected `;' before numeric constant MeCab_wrap.cpp:2702: warning: format not a string literal and no format arguments MeCab_wrap.cpp:2704: error: expected type-specifier before ‘mecab_token_t’ MeCab_wrap.cpp:2704: error: expected `>' before ‘mecab_token_t’ MeCab_wrap.cpp:2704: error: expected `(' before ‘mecab_token_t’ MeCab_wrap.cpp:2704: error: expected primary-expression before ‘>’ token MeCab_wrap.cpp:2704: error: expected `)' before ‘;’ token MeCab_wrap.cpp: In function ‘VALUE _wrap_Token_wcost_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2715: error: ‘mecab_token_t’ was not declared in this scope MeCab_wrap.cpp:2715: error: ‘arg1’ was not declared in this scope MeCab_wrap.cpp:2715: error: expected primary-expression before ‘)’ token MeCab_wrap.cpp:2715: error: expected `;' before numeric constant MeCab_wrap.cpp:2726: warning: format not a string literal and no format arguments MeCab_wrap.cpp:2728: error: expected type-specifier before ‘mecab_token_t’ MeCab_wrap.cpp:2728: error: expected `>' before ‘mecab_token_t’ MeCab_wrap.cpp:2728: error: expected `(' before ‘mecab_token_t’ MeCab_wrap.cpp:2728: error: expected primary-expression before ‘>’ token MeCab_wrap.cpp:2728: error: expected `)' before ‘;’ token MeCab_wrap.cpp: In function ‘VALUE _wrap_Token_feature_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2739: error: ‘mecab_token_t’ was not declared in this scope MeCab_wrap.cpp:2739: error: ‘arg1’ was not declared in this scope MeCab_wrap.cpp:2739: error: expected primary-expression before ‘)’ token MeCab_wrap.cpp:2739: error: expected `;' before numeric constant MeCab_wrap.cpp:2750: warning: format not a string literal and no format arguments MeCab_wrap.cpp:2752: error: expected type-specifier before ‘mecab_token_t’ MeCab_wrap.cpp:2752: error: expected `>' before ‘mecab_token_t’ MeCab_wrap.cpp:2752: error: expected `(' before ‘mecab_token_t’ MeCab_wrap.cpp:2752: error: expected primary-expression before ‘>’ token MeCab_wrap.cpp:2752: error: expected `)' before ‘;’ token MeCab_wrap.cpp: In function ‘VALUE _wrap_Token_compound_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2763: error: ‘mecab_token_t’ was not declared in this scope MeCab_wrap.cpp:2763: error: ‘arg1’ was not declared in this scope MeCab_wrap.cpp:2763: error: expected primary-expression before ‘)’ token MeCab_wrap.cpp:2763: error: expected `;' before numeric constant MeCab_wrap.cpp:2774: warning: format not a string literal and no format arguments MeCab_wrap.cpp:2776: error: expected type-specifier before ‘mecab_token_t’ MeCab_wrap.cpp:2776: error: expected `>' before ‘mecab_token_t’ MeCab_wrap.cpp:2776: error: expected `(' before ‘mecab_token_t’ MeCab_wrap.cpp:2776: error: expected primary-expression before ‘>’ token MeCab_wrap.cpp:2776: error: expected `)' before ‘;’ token MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_prev_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2800: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_next_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2824: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_enext_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2848: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_bnext_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2872: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_rpath_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2896: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_lpath_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2920: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_feature_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2944: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_id_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2968: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_length_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:2992: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_rlength_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3016: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_rcAttr_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3040: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_lcAttr_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3064: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_posid_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3088: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_char_type_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3112: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_stat_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3136: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_isbest_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3160: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_sentence_length_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3184: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3187: error: ‘struct mecab_node_t’ has no member named ‘sentence_length’ MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_alpha_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3208: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_beta_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3232: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_prob_set(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3257: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3262: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_prob_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3285: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_wcost_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3309: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_cost_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3333: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_token_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3349: error: ‘mecab_token_t’ was not declared in this scope MeCab_wrap.cpp:3349: error: ‘result’ was not declared in this scope MeCab_wrap.cpp:3357: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3360: error: expected primary-expression before ‘)’ token MeCab_wrap.cpp:3360: error: ‘struct mecab_node_t’ has no member named ‘token’ MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_surface_get(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3381: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3389: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3392: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_begin_node_list(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3419: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3424: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3432: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3435: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Node_end_node_list(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3461: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3466: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3474: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3477: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_parse(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3506: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3511: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3519: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3522: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_parseToNode(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3551: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3556: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3564: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3567: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_parseNBest(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3599: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3604: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3609: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3617: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3620: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_parseNBestInit(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3649: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3654: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3662: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3665: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_nextNode(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3690: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3698: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3701: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_next(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3724: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3732: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3735: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_formatNode(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3761: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3766: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3774: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3777: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_partial(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3800: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3808: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3811: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_set_partial(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3835: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3840: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3848: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3851: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_theta(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3873: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3881: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3884: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_set_theta(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3908: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3913: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3921: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3924: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_lattice_level(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3946: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3954: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3957: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_set_lattice_level(int, VALUE*, VALUE)’: MeCab_wrap.cpp:3981: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3986: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3994: warning: format not a string literal and no format arguments MeCab_wrap.cpp:3997: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_all_morphs(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4019: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4027: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4030: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_set_all_morphs(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4054: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4059: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4067: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4070: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_dictionary_info(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4092: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4100: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4103: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_what(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4126: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4134: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4137: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_create__SWIG_0(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4168: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4173: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4181: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4184: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_create__SWIG_1(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4208: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4216: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4219: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_version(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4287: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4290: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_new_Tagger__SWIG_0(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4313: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4322: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4325: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_new_Tagger__SWIG_1(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4366: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4369: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_parseToString__SWIG_0(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4429: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4434: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4439: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4447: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4450: warning: format not a string literal and no format arguments MeCab_wrap.cpp: In function ‘VALUE _wrap_Tagger_parseToString__SWIG_1(int, VALUE*, VALUE)’: MeCab_wrap.cpp:4479: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4484: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4492: warning: format not a string literal and no format arguments MeCab_wrap.cpp:4495: warning: format not a string literal and no format arguments make: *** [MeCab_wrap.o] Error 1 Gem files will remain installed in /Users/retina_koji/.rvm/gems/ruby-1.9.3-p327@iko-yo-rails3/bundler/gems/mecab-ruby-gem-253a82b43873 for inspection. Results logged to /Users/retina_koji/.rvm/gems/ruby-1.9.3-p327@iko-yo-rails3/bundler/gems/mecab-ruby-gem-253a82b43873/./gem_make.out An error occurred while installing mecab-ruby (0.98), and Bundler cannot continue. Make sure that `gem install mecab-ruby -v '0.98'` succeeds before bundling.
原因は、マシンにインストールしているmecab本体のバージョンが0.995だったから。
どうやらRubyのmecabモジュールはmecab本体のバージョンと合っていないとだめらしい。
なので、マシンにインストールしているmecabをアンインストールして古いmecabをインストールすることにした。
アンインストール
自分のmecabはmacportsで入れていたので、以下のコマンドでmecabのフルネームを確認した後アンインストールした。
$ port installed | grep mecab $ port uninstall mecab @0.998_0
macportsのインストール済パッケージを調べるコマンド(port search)で調べると、
macportsにはver.0.98のmecabが無かった。のでソースからインストールすることにした。
インストール
辞書ファイルURL
https://code.google.com/p/mecab/downloads/detail?name=mecab-ipadic-2.7.0-20070801.tar.gz&can=2&q=
mecab
$ tar zxf mecab-x.xx.tar.gz $ cd mecab-x.xx $ ./configure --with-charset=utf8 --enable-utf8-only $ make $ sudo make install
辞書ファイル(ipadic)
$ tar zxfv mecab-ipadic-2.7.0-XXXX.tar.gz $ mecab-ipadic-2.7.0-XXXX $ ./configure --with-charset=utf8 $ make reading ./Prefix.csv ... 221 reading ./Suffix.csv ... 1393 reading ./Symbol.csv ... 208 reading ./Verb.csv ... 130750 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" $ sudo make install Password: make[1]: Nothing to be done for `install-exec-am'. /bin/sh ./mkinstalldirs /usr/local/lib/mecab/dic/ipadic mkdir /usr/local/lib/mecab mkdir /usr/local/lib/mecab/dic mkdir /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