tritonのインストール
今回構築しているシステムで開発者からtritonを入れて欲しいという要件が
あったのでインストールしましたが、その時の手順を書いておきます。
今回はtritonのMySQLバージョンが5.0.87なので、Sennaエンジン以外のとこは
5.1系のMySQLが入れたかったのでソースからコンパイルでポートやprefixやらを変更してインストール
1.まずtritonのソースファイル、mecab、sennnaをダウンロード
http://sourceforge.jp/projects/senna/releases/
http://sourceforge.net/projects/mecab/files/
http://sourceforge.jp/projects/tritonn/releases/
※tritonは今回ソースのtritonn-1.0.12-mysql-5.0.87.tar.gzをダウンロード
2.mecabとmecab辞書をインストール
$ tar zxvf mecab-0.97.tar.gz
$ cd mecab-0.97
$ ./configure –enable-utf8-only –with-charset=utf8
$ make
$ make install
$ tar xvzf mecab-ipadic-2.7.0-20070801.tar.gz
$ cd mecab-ipadic-2.7.0-20070801
$ ./configure –with-charset=utf8
$ make
$ make install
3.sennaインストール
$ ./configure –prefix=/usr
$ make
$ make install
4.confgureしてmake&インストール
$ CC=’gcc’ CFLAGS=’-g’ CXX=’gcc’ CXXFLAGS=’-g’ LDFLAGS=” ASFLAGS=” \
./configure –prefix=/usr/local/hogehoge \
–localstatedir=/usr/local/hogehoge/data \
–libexecdir=/usr/local/hogehoge/bin \
–with-server-suffix= \
–enable-thread-safe-client \
–enable-local-infile \
–enable-assembler \
–with-pic \
–with-fast-mutexes \
–with-client-ldflags=-static \
–with-mysqld-ldflags=-static \
–with-zlib-dir=bundled \
–with-big-tables \
–with-yassl \
–with-readline \
–with-archive-storage-engine \
–with-blackhole-storage-engine \
–with-ndbcluster \
–with-csv-storage-engine \
–with-example-storage-engine \
–with-federated-storage-engine \
–with-innodb –with-extra-charsets=all \
–with-senna –with-mecab \
–with-tcp-port=ここは通常は3306 –with-unix-socket-path=/任意のパス/mysql.sock
$ make
$ make install
ここでエラーが出たので
ここを参考にさせてもらって
http://wadslab.net/2008/06/ubuntu-senna-mysql/
$ yum install bison
で解決
まあ、一旦はこれでインストールできた。
10月 13th, 2011 at 5:04 PM
php-apnsを使わない方法を模索していますが(php5.3なので使いたくない)参考になりました。ありがとうございます。