:::: MENU ::::

mroongaをyumでインストール(すでに入っていたMySQL5.1で失敗)

公式の手順を見てみるといきなり MySQL を remove するところから始まっていて、
かなりびびったが、別に MySQL を remove しなくてもいけたのでメモ。
どうやら MySQL のバージョンさえ合っていれば、入れなおさなくていいみたい。

やっぱ無理でした。。。

MySQL は前に公式の rpm をそのまま入れてインストールしていたもの。

# rpm -qa | grep MySQL
MySQL-shared-compat-5.1.68-1.rhel5
MySQL-shared-community-5.1.68-1.rhel5
MySQL-devel-community-5.1.68-1.rhel5
MySQL-embedded-community-5.1.68-1.rhel5
MySQL-server-community-5.1.68-1.rhel5
MySQL-client-community-5.1.68-1.rhel5

普通に yum リポジトリ加えて yum でいけた。
mecab を入れてなかったので mecab を一緒にインストール。

# cd /usr/local/src/
# wget http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
#  rpm -iv groonga-release-1.1.0-1.noarch.rpm
#  vi /etc/yum.repos.d/groonga.repo
enable=0
# yum --enablerepo=groonga install mysql-groonga
===================================================================================================================================================
Package                                         Arch                          Version                        Repository                      Size
===================================================================================================================================================
Installing:
mysql-mroonga                                   x86_64                        3.01-0                         groonga                        254 k
Installing for dependencies:
groonga                                         x86_64                        3.0.1-0                        groonga                        281 k
groonga-libs                                    x86_64                        3.0.1-0                        groonga                        1.2 M
groonga-normalizer-mysql                        x86_64                        1.0.1-0                        groonga                         35 k
groonga-plugin-suggest                          x86_64                        3.0.1-0                        groonga                         22 k

Transaction Summary
===================================================================================================================================================
Install       5 Package(s)
Upgrade       0 Package(s)

# yum --enablerepo=groonga install groonga-tokenizer-mecab
===================================================================================================================================================
Package                                     Arch                       Version                                  Repository                   Size
===================================================================================================================================================
Installing:
groonga-tokenizer-mecab                     x86_64                     3.0.1-0                                  groonga                      11 k
Installing for dependencies:
mecab                                       x86_64                     0.995-1                                  groonga                     478 k
mecab-ipadic                                x86_64                     2.7.0.20070801-6.1                       groonga                      12 M

Transaction Summary
===================================================================================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

再起動後、入っているか確認!入ってないw

mysql> show engines;
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine     | Support | Comment                                                        | Transactions | XA   | Savepoints |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys     | YES          | YES  | YES        |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          | NO           | NO   | NO         |
| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disappears) | NO           | NO   | NO         |
| CSV        | YES     | CSV storage engine                                             | NO           | NO   | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      | NO           | NO   | NO         |
| FEDERATED  | NO      | Federated MySQL storage engine                                 | NULL         | NULL | NULL       |
| ARCHIVE    | YES     | Archive storage engine                                         | NO           | NO   | NO         |
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance         | NO           | NO   | NO         |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
8 rows in set (0.01 sec)

insert してみて対処してみるが、入らない。。。

mysql> INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so';
ERROR 1126 (HY000): Can't open shared library '/usr/lib64/mysql/plugin/ha_mroonga.so' (errno: 13 undefined symbol: _ZN7handler20index_only_read_timeEjd)

さて困ったぞ。つづく。