[mecab-users 56] problem building mecab 0.81

アーカイブの一覧に戻る

Thomas Latka|hybris thoma****@hybri*****
2006年 2月 25日 (土) 19:58:40 JST


Hello,

I am an Java developer and the webmaster of www.wadoku.de,
a japanese-german online dictionary.
No I want to add mecab to parse the japanese search phrase,
but I run into some problems. Can you help me?
(I can read and write japanese, but the mail client gets sometimes "mojibake (文字化け)", so don't hesitate to answer in Japanese!)

I use
Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 (German Edition)
Cygwin 1.5.19 with all Developer-Packages.

I downloaded
mecab-0.81.tar.gz
ipadic-2.5.1

and run:
./configure    (-> without problems)
make           (-> with the following output)

make  all-recursive
make[1]: Entering directory `/cygdrive/c/downloads/mecab-0.81.tar/mecab-0.81'
Making all in src
make[2]: Entering directory `/cygdrive/c/downloads/mecab-0.81.tar/mecab-0.81/src
'
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -DMECAB_DEFA
ULT_RC="\"/usr/local/etc/mecabrc\""    -O3 -Wall -Wno-deprecated -c -o nbest_gen
erator.lo `test -f 'nbest_generator.cpp' || echo './'`nbest_generator.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -
O3 -Wall -Wno-deprecated -c nbest_generator.cpp -o nbest_generator.o
echo timestamp > nbest_generator.lo
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -DMECAB_DEFA
ULT_RC="\"/usr/local/etc/mecabrc\""    -O3 -Wall -Wno-deprecated -c -o writer.lo
 `test -f 'writer.cpp' || echo './'`writer.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -
O3 -Wall -Wno-deprecated -c writer.cpp -o writer.o
common.h: In function `void MeCab::itoa(T, char*) [with T = short unsigned int]'
:
stringbuffer.h:56:   instantiated from here
common.h:83: warning: comparison is always false due to limited range of data ty
pe
echo timestamp > writer.lo
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -DMECAB_DEFA
ULT_RC="\"/usr/local/etc/mecabrc\""    -O3 -Wall -Wno-deprecated -c -o stringbuf
fer.lo `test -f 'stringbuffer.cpp' || echo './'`stringbuffer.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -
O3 -Wall -Wno-deprecated -c stringbuffer.cpp -o stringbuffer.o
common.h: In function `void MeCab::itoa(T, char*) [with T = short unsigned int]'
:
stringbuffer.h:56:   instantiated from here
common.h:83: warning: comparison is always false due to limited range of data ty
pe
echo timestamp > stringbuffer.lo
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -DMECAB_DEFA
ULT_RC="\"/usr/local/etc/mecabrc\""    -O3 -Wall -Wno-deprecated -c -o viterbi.l
o `test -f 'viterbi.cpp' || echo './'`viterbi.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DMECAB_DEFAULT_RC=\"/usr/local/etc/mecabrc\" -
O3 -Wall -Wno-deprecated -c viterbi.cpp -o viterbi.o
In file included from dictionary.h:28,
                 from tokenizer.h:28,
                 from viterbi.h:27,
                 from viterbi.cpp:24:
mmap.h: In function `int open__(const char*, int)':
mmap.h:73: error: `open' undeclared (first use this function)
mmap.h:73: error: (Each undeclared identifier is reported only once for each fun
ction it appears in.)
mmap.h: In member function `bool MeCab::Mmap<T>::open(const char*, const char*)'
:
mmap.h:182: error: `O_RDONLY' undeclared (first use this function)
mmap.h:183: error: `O_RDWR' undeclared (first use this function)
mmap.h: In member function `bool MeCab::Mmap<T>::close()':
mmap.h:229: error: `O_RDWR' undeclared (first use this function)
mmap.h: In member function `bool MeCab::Mmap<T>::open(const char*, const char*)
[with T = char]':
dictionary.h:50:   instantiated from here
mmap.h:179: error: `st' has incomplete type
mmap.h:179: error: storage size of `st' isn't known
mmap.h:189: error: `fstat' undeclared (first use this function)
mmap.h: In member function `bool MeCab::Mmap<T>::open(const char*, const char*)
[with T = MeCab::Token]':
dictionary.h:54:   instantiated from here
mmap.h:179: error: `st' has incomplete type
mmap.h:179: error: storage size of `st' isn't known
mmap.h:189: error: `fstat' undeclared (first use this function)
mmap.h: In member function `bool MeCab::Mmap<T>::open(const char*, const char*)
[with T = short unsigned int]':
connector.h:57:   instantiated from here
mmap.h:179: error: `st' has incomplete type
mmap.h:179: error: storage size of `st' isn't known
mmap.h:189: error: `fstat' undeclared (first use this function)
make[2]: *** [viterbi.lo] Error 1
make[2]: Leaving directory `/cygdrive/c/downloads/mecab-0.81.tar/mecab-0.81/src'

make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/downloads/mecab-0.81.tar/mecab-0.81'
make: *** [all] Error 2


--

Then I tried to swith to utf8 just for testing, but then got the following messages:

/dic:
$ make charset=utf8
./ipa2mecab.pl ipadic-*
ipadic-2.5.1/Adj.dic ...
ipadic-2.5.1/Adnominal.dic ...
ipadic-2.5.1/Adverb.dic ...
ipadic-2.5.1/Auxil.dic ...
ipadic-2.5.1/Conjunction.dic ...
ipadic-2.5.1/Filler.dic ...
ipadic-2.5.1/Interjection.dic ...
ipadic-2.5.1/Noun.adjv.dic ...
ipadic-2.5.1/Noun.adverbal.dic ...
ipadic-2.5.1/Noun.demonst.dic ...
ipadic-2.5.1/Noun.dic ...
ipadic-2.5.1/Noun.nai.dic ...
ipadic-2.5.1/Noun.name.dic ...
ipadic-2.5.1/Noun.number.dic ...
ipadic-2.5.1/Noun.org.dic ...
ipadic-2.5.1/Noun.others.dic ...
ipadic-2.5.1/Noun.place.dic ...
ipadic-2.5.1/Noun.proper.dic ...
ipadic-2.5.1/Noun.verbal.dic ...
ipadic-2.5.1/Others.dic ...
ipadic-2.5.1/Postp-col.dic ...
ipadic-2.5.1/Postp.dic ...
ipadic-2.5.1/Prefix.dic ...
ipadic-2.5.1/Suffix.dic ...
ipadic-2.5.1/Symbol.dic ...
ipadic-2.5.1/Verb.dic ...
/usr/bin/iconv -f EUC-JP -t UTF-8     -c connect.csv > connect.csv.utf8;  mv -f
connect.csv.utf8 connect.csv; /usr/bin/iconv -f EUC-JP -t UTF-8     -c dic.csv >
 dic.csv.utf8; mv -f dic.csv.utf8 dic.csv; /usr/bin/iconv -f EUC-JP -t UTF-8
 -c dicrc > dicrc.utf8;  mv -f dicrc.utf8 dicrc
/usr/bin/sort dic.csv | /usr/bin/uniq > tmp
mv -f tmp dic.csv
../src/mkmecabdic
/bin/sh: ../src/mkmecabdic: No such file or directory
make: *** [da.me] Error 127


But the file: \src\mkmecabdic.cpp exists.
Can somebody give me a hint?

As I said, I want to use mecab from my Java-WebApplication, what is the easiest way to do it?
Is there already somewhere a mecab-webservice (SOAP/REST), which can be used?
Sorry, for all the questions.

Regards,
Thomas Latka
thoma****@hybri*****
-------------- next part --------------
HTMLの添付ファイルを保管しました...
ダウンロード 


mecab-users メーリングリストの案内
アーカイブの一覧に戻る