MYSQLにフルテキストサーチを入れる時のメモ。
いるもの
mecab-0.96.tar.gz senna-1.0.5.tar.gz
mecab-ipadic-2.7.0-20070610.tar.gz tritonn-1.0.2.mysql-5.0.41.senna-1.0.5.tar.gz
mecabを展開後インストール
ライブラリのリンカーが生きてないので
/etc/ld.so.conf に/usr/local/etc/ が入っていない。
#echo "/usr/local/lib" >>/etc/ld.so.conf
#ldconfig
#cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/ofed/lib64
/usr/local/lib
make
make install
-----------
/bin/sh ./mkinstalldirs /usr/lib/mecab/dic/ipadic
mkdir /usr/lib/mecab
mkdir /usr/lib/mecab/dic
mkdir /usr/lib/mecab/dic/ipadic
/usr/bin/install -c -m 644 ./matrix.bin /usr/lib/mecab/dic/ipadic/matrix.bin
/usr/bin/install -c -m 644 ./char.bin /usr/lib/mecab/dic/ipadic/char.bin
/usr/bin/install -c -m 644 ./sys.dic /usr/lib/mecab/dic/ipadic/sys.dic
/usr/bin/install -c -m 644 ./unk.dic /usr/lib/mecab/dic/ipadic/unk.dic
/usr/bin/install -c -m 644 ./left-id.def /usr/lib/mecab/dic/ipadic/left-id.def
/usr/bin/install -c -m 644 ./right-id.def /usr/lib/mecab/dic/ipadic/right-id.def
/usr/bin/install -c -m 644 ./rewrite.def /usr/lib/mecab/dic/ipadic/rewrite.def
/usr/bin/install -c -m 644 ./pos-id.def /usr/lib/mecab/dic/ipadic/pos-id.def
/usr/bin/install -c -m 644 ./dicrc /usr/lib/mecab/dic/ipadic/dicrc
----
tar -zxvf senna-1.0.5.tar.gz
cd senna-1.0.5
./configure --prefix=/usr/local
make check
make install
ldconfig
cd mysqlに
mysql を展開 ごちょごちょやります。
libtoolize -c -f
ごちゃごちゃ出てきた。
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
libtoolize: `/usr/share/aclocal/libtool.m4' is serial 47, less than 48 in `aclocal.m4'
To remain compatible, you should update your `aclocal.m4' by running aclocal.
aclocal-1.9
autoheader
automake-1.9 -c -a -i
autoconf
touch sql/sql_yacc.yy
CXX=gcc ./configure --prefix=/usr/local/mysql
--with-extra-charsets=complex --enable-thread-safe-client
--enable-local-infile --disable-shared --with-charset=utf8 --with-senna
./configure \
--prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/data \
--libexecdir=/usr/local/mysql/bin \
--enable-thread-safe-client \
--enable-local-infile \
--enable-assembler \
--with-pic \
--with-fast-mutexes \
--disable-shared \
--with-zlib-dir=bundled \
--with-big-tables \
--with-yassl \
--with-readline \
--with-archive-storage-engine \
--with-blackhole-storage-engine \
--with-federated-storage-engine \
--with-innodb \
--with-extra-charsets=complex \
--with-charset=utf8 \
--with-senna --with-mecab
http://qwik.jp/tritonn/userguide.html
今日の雑記帳
今日のサイトメモ
YOUTUBEよりもはやってるらしい
http://www.dailymotion.com/
つっこみいれられるほうが面白いかも
http://gufufu.nifty.com/index.jsp
でもNIFTYっていうのはなんでしょうか。はみだしって。