레이블이 mroonga인 게시물을 표시합니다. 모든 게시물 표시
레이블이 mroonga인 게시물을 표시합니다. 모든 게시물 표시

2015년 12월 17일 목요일

How to Install Mroonga with MySQL Ver. 5.6

1. Install Rpm Library 

1) Rpm 

You should install rpm.

gcc
gcc-c++
libgcc

libstdc++
libstdc++-devel

groonga-devel
groonga-libs
groonga-normalizer-mysql
groonga-tokenizer-mecab
mecab
mecab-ipadic

2) MySQL 

Installed MySQL
MySQL Source

3) Mroonga 

Mroonga Source

ex> http://packages.groonga.org

2. Install 

1) MySQL Install 

Install MySQL the way you want

2) MySQL source 


gunzip mysql-5.6.24.tar.gz
tar xf mysql-5.6.24.tar

3) Mroonga source

tar xf mroonga-5.10.tar

4) Compile Mroonga

cd mroonga-5.10
./configure --with-mysql-source=/db/mysql-5.6.24 --with-mysql-config=/usr/local/mysql/bin/mysql_config
make
make install

5) check 

cd /usr/local/mysql/lib/plugin/
ls -al | grep ha_m
-rw-r--r-- 1 root  root  10884114 Dec 16 15:54 ha_mroonga.a
-rwxr-xr-x 1 root  root      1005 Dec 16 15:54 ha_mroonga.la
lrwxrwxrwx 1 root  root        19 Dec 16 15:54 ha_mroonga.so -> ha_mroonga.so.0.0.0
lrwxrwxrwx 1 root  root        19 Dec 16 15:54 ha_mroonga.so.0 -> ha_mroonga.so.0.0.0

-rwxr-xr-x 1 root  root   3943353 Dec 16 15:54 ha_mroonga.so.0.0.0

3. Enable Mroonga plugin 

1) MySQL Restart 

The way you want

2) Execute Command 

INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so';
CREATE FUNCTION last_insert_grn_id RETURNS INTEGER soname 'ha_mroonga.so';
CREATE FUNCTION mroonga_snippet RETURNS STRING soname 'ha_mroonga.so';

3) check mroonga

show plugins;
show engines;

4. Test 

The Way you want~~~~

http://mroonga.org/docs/install/others.html#build-from-source