[Senna-dev 314] Re: N-gramインデックスによるsennaのインストールについて

アーカイブの一覧に戻る

taku miyamoto taku_miyam****@dwang*****
2006年 9月 12日 (火) 19:26:17 JST


末永様

宮本です。
夜遅くまでお付き合いいただきありがとうございます。



> MySQLのインストール手順について、
> どんなコマンドを実行したかを全て時系列順に教えていただけないでしょうか。

以下に、MySQLのインストール手順と実行時にでたエラーなどについて記させて
いただきました。


----------------------------------------------------------------------------------
# tar xzvf mysql-4.0.27.tar.gz
# cd mysql-4.0.27
# patch -p1 < ../../senna_mecab/senna/bindings/mysql/mysql-4.0.27.senna.dif
# patch -p1 < ../../senna_mecab/senna/bindings/mysql/mysql-4.0.27.senna.2ind.diff
# libtoolize -c -f
↓エラー
-----------------------------
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
-----------------------------

# aclocal-1.9
↓warning
-----------------------------
configure.in:252: warning: underquoted definition of AC_SYS_COMPILER_FLAG
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in:275: warning: underquoted definition of AC_SYS_CPU_COMPILER_FLAG
configure.in:283: warning: underquoted definition of AC_SYS_OS_COMPILER_FLAG
acinclude.m4:5: warning: underquoted definition of MYSQL_CHECK_SIZEOF
acinclude.m4:34: warning: underquoted definition of MYSQL_TYPE_ACCEPT
acinclude.m4:74: warning: underquoted definition of MYSQL_TYPE_QSORT
acinclude.m4:91: warning: underquoted definition of MYSQL_TIMESPEC_TS
    :(上記と同様のエラーが約30行ほど)
    :
-----------------------------

# autoheader
↓warning
-----------------------------
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader:             [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
-----------------------------
# automake-1.9 -c -a -i
# autoconf
↓エラー
-----------------------------
configure.in:197: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
-----------------------------

# touch sql/sql_yacc.yy
# ./configure --with-charset=sjis --with-extra-charsets=all --with-named-curses-libs=/usr/lib/libncurses.so.5 --with-senna
↓ --without-mecab オプションをつけると以下のエラー
-----------------------------
>> checking for mecab_new... no
> configure: error: libmecab is required to enable Senna support
-----------------------------

# make
↓エラー
-----------------------------
  :
  :
  :
make[2]: 入ります ディレクトリ `/usr/local/src/mysql/mysql-4.0.27/libmysql'
preserve-dup-deps --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local\""
-DDI.. -I./../include -I../include -I./.. -I.. -I..     -O3 -DDBUG_OFF
-c -o lib
/bin/sh: line 1: preserve-dup-deps: command not found
make[2]: [libmysql.lo] エラー 127 (無視されました)
preserve-dup-deps --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local\""
-DDI.. -I./../include -I../include -I./.. -I.. -I..     -O3 -DDBUG_OFF
-c -o pas
/bin/sh: line 1: preserve-dup-deps: command not found
make[2]: [password.lo] エラー 127 (無視されました)
  :
  : (上記と同様のエラーが大量に発生)
  :

make[2]: preserve-dup-deps: コマンドが見つかりませんでした
make[2]: [conf_to_src] エラー 127 (無視されました)
./conf_to_src ..  cp1251 cp1257 croat danish dec8 dos estonia german1 greek hebrew hp8 hungarian 
koi8_ru koi8_ukr latin1 latin2 latin5 swe7 usa7 win1250 win1251ukr
win1251 > \
              ./ctype_extra_sources.c
/bin/sh: line 1: ./conf_to_src: そのようなファイルやディレクトリはありません
make[2]: *** [ctype_extra_sources.c] エラー 127
make[2]: 出ます ディレクトリ `/usr/local/src/mysql/mysql-4.0.27/libmysql'
make[1]: *** [all-recursive] エラー 1
make[1]: 出ます ディレクトリ `/usr/local/src/mysql/mysql-4.0.27'
make: *** [all] エラー 2
-----------------------------
----------------------------------------------------------------------------------





> > -----------------------------------------------------------------
> >   :
> > checking for mecab_new... no
> > configure: error: libmecab is required to enable Senna support
> > -----------------------------------------------------------------
> Senna 0.8.0までは上記のエラーが発生いたします。
> お手数ですが、Senna 0.8.1をご利用ください。
> 
> Wikipedia英語データを用いてSennaのテストを行う
> 一連の操作をメモしたものを以下に示します。

記していただきましたインストールメモを参考にSenna 0.8.1利用してもう一度
最初からインストールしなおしてみたいと思います。


お忙しい中、お手を煩わせてしまい申し訳ございません。
インストールが完了し次第、再度MLに結果のメールをなげさせていただきたいと
思います。
貴重なご意見・ご指摘をいただきありがとうございます。





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