MySQL が 5.5 だと yum で入れられないので、rpm を指定しないといけないみたい。
バージョンが同じでも remi のだったらダメだったので、入れなおさないといけない。
macab 系は普通に入るのでまずインストール
# yum --disablerepo=* --enablerepo=groonga install mecab mecab-devel mecab-ipadic
===========================================================================================================
Package Arch Version Repository Size
===========================================================================================================
Installing:
mecab x86_64 0.995-1.el6 groonga 2.3 M
mecab-devel x86_64 0.995-1.el6 groonga 102 k
mecab-ipadic x86_64 2.7.0.20070801-6.el6.1 groonga 12 M
Transaction Summary
===========================================================================================================
Install 3 Package(s)
rpm を groonga から落としてくる
# wget http://packages.groonga.org/centos/5/x86_64/Packages/MySQL-client-5.5.28-1.rhel5.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/MySQL-devel-5.5.28-1.rhel5.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/MySQL-embedded-5.5.28-1.rhel5.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/MySQL-server-5.5.28-1.rhel5.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/MySQL-shared-5.5.28-1.rhel5.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/mysql-mroonga-3.01-0.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/groonga-3.0.1-0.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/groonga-devel-3.0.1-0.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/groonga-libs-3.0.1-0.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/groonga-munin-plugins-3.0.1-0.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/groonga-normalizer-mysql-1.0.1-0.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/groonga-tokenizer-mecab-3.0.1-0.x86_64.rpm
# wget http://packages.groonga.org/centos/5/x86_64/Packages/groonga-plugin-suggest-3.0.1-0.x86_64.rpm
rpm を入れようとすると、すでに remi のが入っているって怒られる
# rpm -Uvh groonga-* MySQL-*
Preparing... ########################################### [100%]
package groonga-release-1.1.0-1.noarch is already installed
file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.28-1.rhel5.x86_64 conflicts with file from package mysql-libs-5.5.28-1.el6.remi.x86_64
…
しかたないので MySQL を remove
# yum remove mysql
===========================================================================================================
Package Arch Version Repository Size
===========================================================================================================
Removing:
mysql x86_64 5.5.28-1.el6.remi @remi 28 M
Removing for dependencies:
mysql-devel x86_64 5.5.28-1.el6.remi @remi 598 k
mysql-server x86_64 5.5.28-1.el6.remi @remi 45 M
Transaction Summary
===========================================================================================================
Remove 3 Package(s)
Installed size: 74 M
Is this ok [y/N]: y
mysql-libs を消そうとすると、cron や munin まで消そうとしやがる……
# yum remove mysql-libs
===========================================================================================================
Package Arch Version Repository Size
===========================================================================================================
Removing:
mysql-libs x86_64 5.5.28-1.el6.remi @remi 4.1 M
Removing for dependencies:
cronie x86_64 1.4.4-7.el6 @anaconda-CentOS-201207061011.x86_64/6.3 166 k
cronie-anacron x86_64 1.4.4-7.el6 @anaconda-CentOS-201207061011.x86_64/6.3 43 k
crontabs noarch 1.10-33.el6 @anaconda-CentOS-201207061011.x86_64/6.3 2.4 k
munin noarch 2.0.11.1-1.el6 @epel-testing 532 k
munin-node noarch 2.0.11.1-1.el6 @epel-testing 1.3 M
postfix x86_64 2:2.6.6-2.2.el6_1 @anaconda-CentOS-201207061011.x86_64/6.3 9.7 M
sysstat x86_64 9.0.4-20.el6 @anaconda-CentOS-201207061011.x86_64/6.3 807 k
Transaction Summary
===========================================================================================================
Remove 8 Package(s)
Installed size: 17 M
Is this ok [y/N]: N
Exiting on user Command
それはさすがにちょっとな〜ってことで、MySQL のバージョンは同じなので置き換えオプションをつける。
# rpm -Uvh --replacefiles groonga-* MySQL-*
Preparing... ########################################### [100%]
1:groonga-libs ########################################### [ 8%]
2:groonga-plugin-suggest ########################################### [ 17%]
3:groonga ########################################### [ 25%]
4:MySQL-devel ########################################### [ 33%]
5:MySQL-embedded ########################################### [ 42%]
6:groonga-normalizer-mysq########################################### [ 50%]
7:groonga-devel ########################################### [ 58%]
8:groonga-munin-plugins ########################################### [ 67%]
# The following plugins caused errors:
# groonga_cpu_load:
# Non-zero exit during autoconf (255)
# groonga_cpu_time:
# Non-zero exit during autoconf (255)
# groonga_disk:
# Non-zero exit during autoconf (255)
# groonga_memory:
# Non-zero exit during autoconf (255)
# groonga_n_records:
# Non-zero exit during autoconf (255)
# groonga_query_performance:
# Non-zero exit during autoconf (255)
# groonga_status:
# Non-zero exit during autoconf (255)
# groonga_throughput:
# Non-zero exit during autoconf (255)
# ntp_states:
# Non-zero exit during autoconf (2)
# pgbouncer_connections:
# Junk printed to stderr
# pgbouncer_requests:
# Junk printed to stderr
# postgres_autovacuum:
# Junk printed to stderr
# postgres_bgwriter:
# Junk printed to stderr
# postgres_cache_:
# Junk printed to stderr
# postgres_checkpoints:
# Junk printed to stderr
# postgres_connections_:
# Junk printed to stderr
# postgres_connections_db:
# Junk printed to stderr
# postgres_locks_:
# Junk printed to stderr
# postgres_oldest_prepared_xact_:
# Junk printed to stderr
# postgres_prepared_xacts_:
# Junk printed to stderr
# postgres_querylength_:
# Junk printed to stderr
# postgres_scans_:
# Junk printed to stderr
# postgres_size_:
# Junk printed to stderr
# postgres_transactions_:
# Junk printed to stderr
# postgres_tuples_:
# Junk printed to stderr
# postgres_users:
# Junk printed to stderr
# postgres_xlog:
# Junk printed to stderr
# proc:
# In family 'auto' but doesn't have 'autoconf' capability
# slony_lag_:
# Junk printed to stderr
9:groonga-tokenizer-mecab########################################### [ 75%]
10:MySQL-shared ########################################### [ 83%]
ls: cannot access /var/lib/mysql/*.err: No such file or directory
ls: cannot access /var/lib/mysql/*.err: No such file or directory
11:MySQL-server ########################################### [ 92%]
12:MySQL-client ########################################### [100%]
なぜか munin の autoconf が走ったりしたけど、問題なくインストール完了!