[mecab-users 454] Re: mecab-pythonビルド問題

Back to archive index

Taku Kudo taku****@chase*****
2012年 3月 25日 (日) 00:02:26 JST


工藤です

0.98と0.993はAPIに非互換の部分があります。mecab-python-0.993をダウンロードしてそちらを
お使い下さい。

工藤

2012年3月23日4:11 Yo Sato <yosat****@gmail*****>:
> 再び失礼します。
>
> arch 64 でmecab-pythonソースのビルドを試みたところ以下のエラーが出ます。(長いので文末に置きます)
>
> ソースはソースフォージから最新安定ものとおぼしきをダウンロードしました。0.993(本体) 0.98(パイソンバインディング)
>
> 何か解決の糸口等ありましたら宜しくお願いします。
>
> 佐藤
>
>
> $ python2 setup.py build
> running build
> running build_py
> running build_ext
> building '_MeCab' extension
> gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2
> -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
> -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
> --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC
> -I/usr/local/include -I/usr/include/python2.7 -c MeCab_wrap.cxx -o
> build/temp.linux-x86_64-2.7/MeCab_wrap.o
> MeCab_wrap.cxx: In function ‘const mecab_node_t*
> mecab_node_t_begin_node_list(mecab_node_t*, size_t)’:
> MeCab_wrap.cxx:3079:16: error: ‘mecab_node_t’ has no member named
> ‘sentence_length’
> MeCab_wrap.cxx:3081:17: error: ‘mecab_node_t’ has no member named
> ‘begin_node_list’
> MeCab_wrap.cxx:3082:19: error: ‘mecab_node_t’ has no member named
> ‘begin_node_list’
> MeCab_wrap.cxx: In function ‘const mecab_node_t*
> mecab_node_t_end_node_list(mecab_node_t*, size_t)’:
> MeCab_wrap.cxx:3087:16: error: ‘mecab_node_t’ has no member named
> ‘sentence_length’
> MeCab_wrap.cxx:3089:17: error: ‘mecab_node_t’ has no member named
> ‘end_node_list’
> MeCab_wrap.cxx:3090:19: error: ‘mecab_node_t’ has no member named
> ‘end_node_list’
> MeCab_wrap.cxx: In function ‘PyObject*
> _wrap_Token_lcAttr_get(PyObject*, PyObject*)’:
> MeCab_wrap.cxx:3668:3: error: ‘mecab_token_t’ was not declared in this scope
> MeCab_wrap.cxx:3668:18: error: ‘arg1’ was not declared in this scope
> MeCab_wrap.cxx:3668:41: error: expected primary-expression before ‘)’ token
> MeCab_wrap.cxx:3668:43: error: expected ‘;’ before numeric constant
> MeCab_wrap.cxx:3679:28: error: expected type-specifier before ‘mecab_token_t’
> MeCab_wrap.cxx:3679:28: error: expected ‘>’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3679:28: error: expected ‘(’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3679:44: error: expected primary-expression before ‘>’ token
> MeCab_wrap.cxx:3679:52: error: expected ‘)’ before ‘;’ token
> MeCab_wrap.cxx: In function ‘PyObject*
> _wrap_Token_rcAttr_get(PyObject*, PyObject*)’:
> MeCab_wrap.cxx:3690:3: error: ‘mecab_token_t’ was not declared in this scope
> MeCab_wrap.cxx:3690:18: error: ‘arg1’ was not declared in this scope
> MeCab_wrap.cxx:3690:41: error: expected primary-expression before ‘)’ token
> MeCab_wrap.cxx:3690:43: error: expected ‘;’ before numeric constant
> MeCab_wrap.cxx:3701:28: error: expected type-specifier before ‘mecab_token_t’
> MeCab_wrap.cxx:3701:28: error: expected ‘>’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3701:28: error: expected ‘(’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3701:44: error: expected primary-expression before ‘>’ token
> MeCab_wrap.cxx:3701:52: error: expected ‘)’ before ‘;’ token
> MeCab_wrap.cxx: In function ‘PyObject*
> _wrap_Token_posid_get(PyObject*, PyObject*)’:
> MeCab_wrap.cxx:3712:3: error: ‘mecab_token_t’ was not declared in this scope
> MeCab_wrap.cxx:3712:18: error: ‘arg1’ was not declared in this scope
> MeCab_wrap.cxx:3712:41: error: expected primary-expression before ‘)’ token
> MeCab_wrap.cxx:3712:43: error: expected ‘;’ before numeric constant
> MeCab_wrap.cxx:3723:28: error: expected type-specifier before ‘mecab_token_t’
> MeCab_wrap.cxx:3723:28: error: expected ‘>’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3723:28: error: expected ‘(’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3723:44: error: expected primary-expression before ‘>’ token
> MeCab_wrap.cxx:3723:52: error: expected ‘)’ before ‘;’ token
> MeCab_wrap.cxx: In function ‘PyObject*
> _wrap_Token_wcost_get(PyObject*, PyObject*)’:
> MeCab_wrap.cxx:3734:3: error: ‘mecab_token_t’ was not declared in this scope
> MeCab_wrap.cxx:3734:18: error: ‘arg1’ was not declared in this scope
> MeCab_wrap.cxx:3734:41: error: expected primary-expression before ‘)’ token
> MeCab_wrap.cxx:3734:43: error: expected ‘;’ before numeric constant
> MeCab_wrap.cxx:3745:28: error: expected type-specifier before ‘mecab_token_t’
> MeCab_wrap.cxx:3745:28: error: expected ‘>’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3745:28: error: expected ‘(’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3745:44: error: expected primary-expression before ‘>’ token
> MeCab_wrap.cxx:3745:52: error: expected ‘)’ before ‘;’ token
> MeCab_wrap.cxx: In function ‘PyObject*
> _wrap_Token_feature_get(PyObject*, PyObject*)’:
> MeCab_wrap.cxx:3756:3: error: ‘mecab_token_t’ was not declared in this scope
> MeCab_wrap.cxx:3756:18: error: ‘arg1’ was not declared in this scope
> MeCab_wrap.cxx:3756:41: error: expected primary-expression before ‘)’ token
> MeCab_wrap.cxx:3756:43: error: expected ‘;’ before numeric constant
> MeCab_wrap.cxx:3767:28: error: expected type-specifier before ‘mecab_token_t’
> MeCab_wrap.cxx:3767:28: error: expected ‘>’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3767:28: error: expected ‘(’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3767:44: error: expected primary-expression before ‘>’ token
> MeCab_wrap.cxx:3767:52: error: expected ‘)’ before ‘;’ token
> MeCab_wrap.cxx: In function ‘PyObject*
> _wrap_Token_compound_get(PyObject*, PyObject*)’:
> MeCab_wrap.cxx:3778:3: error: ‘mecab_token_t’ was not declared in this scope
> MeCab_wrap.cxx:3778:18: error: ‘arg1’ was not declared in this scope
> MeCab_wrap.cxx:3778:41: error: expected primary-expression before ‘)’ token
> MeCab_wrap.cxx:3778:43: error: expected ‘;’ before numeric constant
> MeCab_wrap.cxx:3789:28: error: expected type-specifier before ‘mecab_token_t’
> MeCab_wrap.cxx:3789:28: error: expected ‘>’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3789:28: error: expected ‘(’ before ‘mecab_token_t’
> MeCab_wrap.cxx:3789:44: error: expected primary-expression before ‘>’ token
> MeCab_wrap.cxx:3789:52: error: expected ‘)’ before ‘;’ token
> MeCab_wrap.cxx: In function ‘PyObject*
> _wrap_Node_sentence_length_get(PyObject*, PyObject*)’:
> MeCab_wrap.cxx:4171:36: error: ‘mecab_node_t’ has no member named
> ‘sentence_length’
> MeCab_wrap.cxx: In function ‘PyObject* _wrap_Node_token_get(PyObject*,
> PyObject*)’:
> MeCab_wrap.cxx:4325:3: error: ‘mecab_token_t’ was not declared in this scope
> MeCab_wrap.cxx:4325:18: error: ‘result’ was not declared in this scope
> MeCab_wrap.cxx:4333:28: error: expected primary-expression before ‘)’ token
> MeCab_wrap.cxx:4333:39: error: ‘mecab_node_t’ has no member named ‘token’
> error: command 'gcc' failed with exit status 1
>
> _______________________________________________
> mecab-users mailing list
> mecab****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/mecab-users




mecab-users メーリングリストの案内
Back to archive index