Created
September 6, 2013 08:11
-
-
Save nobuoka/6460909 to your computer and use it in GitHub Desktop.
Perl 5.8.8 で Text::MeCab をインストールしようとするとエラーが出る
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Text-MeCab-0.20014$ make | |
cc -c "-I." "-I/usr/include" "-I." -fPIC -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMECAB_MAJOR_VERSION=0 -DMECAB_MINOR_VERSION=97 -I src -Wall -W -Wno-comment -O2 -DVERSION=\"0.20014\" -DXS_VERSION=\"0.20014\" -o xs/MeCab.o -fpic "-I/home/nobuoka/perl5/perlbrew/perls/perl-5.8.8/lib/5.8.8/x86_64-linux/CORE" -DUSE_PPPORT -DTEXT_MECAB_ENCODING='"euc-jp"' -DTEXT_MECAB_CONFIG='"/usr/bin/mecab-config"' xs/MeCab.c | |
xs/MeCab.xs:64: warning: excess elements in struct initializer | |
xs/MeCab.xs:64: warning: (near initialization for ‘TextMeCab_vtbl’) | |
xs/MeCab.xs: In function ‘XS_Text__MeCab_version’: | |
xs/MeCab.xs:116: warning: assignment discards qualifiers from pointer target type | |
xs/MeCab.c: In function ‘boot_Text__MeCab’: | |
xs/MeCab.c:1140: error: ‘MECAB_ONE_BEST’ undeclared (first use in this function) | |
xs/MeCab.c:1140: error: (Each undeclared identifier is reported only once | |
xs/MeCab.c:1140: error: for each function it appears in.) | |
xs/MeCab.c:1144: error: ‘MECAB_ALLOCATE_SENTENCE’ undeclared (first use in this function) | |
xs/MeCab.c:1146: error: ‘MECAB_MARGINAL_PROB’ undeclared (first use in this function) | |
xs/MeCab.c:1152: error: ‘MECAB_ALTERNATIVE’ undeclared (first use in this function) | |
xs/MeCab.c:1158: error: ‘MECAB_ALL_MORPHS’ undeclared (first use in this function) | |
xs/MeCab.c:1162: error: ‘MECAB_NBEST’ undeclared (first use in this function) | |
xs/MeCab.c:1164: error: ‘MECAB_EON_NODE’ undeclared (first use in this function) | |
xs/MeCab.c:1166: error: ‘MECAB_PARTIAL’ undeclared (first use in this function) | |
make: *** [xs/MeCab.o] エラー 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
全体的に壊れかけの Debian 6 で試したのだけれど、それがだめだったのかもしれない。 Debian 7 だと
したうえで Text::MeCab をインストールしたらすんなり通った。