2.5. CentOS

This section describes how to install Mroonga related RPM packages on CentOS. You can install them by yum.

We distribute both 32-bit and 64-bit packages but we strongly recommend a 64-bit package for server. You should use a 32-bit package just only for tests or development. You will encounter an out of memory error with a 32-bit package even if you just process medium size data.

2.5.1. CentOS 5

You use CentOS's MySQL packages (version 5.5.x) on CentOS 5 since Mroonga 3.09 release.

Install:

% wget http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y --nogpgcheck groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y mysql55-mysql-server
% sudo /sbin/service mysql55-mysqld start
% sudo yum install -y --enablerepo=epel mysql55-mroonga
(% sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.2. CentOS 6 (with the official MySQL package)

You can use CentOS's SCL MySQL packages (version 5.5.x) on CentOS 6 since Mroonga 4.01 release.

Install:

% sudo yum install -y centos-release-scl
% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y mysql55-mysql-server
% sudo /sbin/service mysql55-mysqld start
% sudo yum install -y --enablerepo=epel mysql55-mroonga
(% sudo scl enable mysql55 "mysqladmin -u root password 'new-password'")

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.3. CentOS 6 (with the Oracle MySQL 5.6 package)

You can use Oracle's MySQL packages version 5.6 on CentOS 6 since Mroonga 4.04 release.

Install:

% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y http://repo.mysql.com/mysql-community-release-el6-7.noarch.rpm
% sudo yum install -y --enablerepo=epel mysql-community-mroonga
(% sudo /sbin/service mysqld start)
(% sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.4. CentOS 6 (with the Oracle MySQL 5.7 package)

You can use Oracle's MySQL packages version 5.7 on CentOS 6 since Mroonga 5.09 release.

Install:

% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y http://repo.mysql.com/mysql-community-release-el6-7.noarch.rpm
% sudo yum install -y yum-utils
% sudo yum-config-manager --disable mysql56-community
% sudo yum-config-manager --enable mysql57-community
% sudo yum install -y --enablerepo=epel mysql57-community-mroonga
(% sudo /sbin/service mysqld start)
(% tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
(% sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.5. CentOS 6 (with Percona Server 5.6 package)

You can use Percona Server packages version 5.6 on CentOS 6 since Mroonga 5.02 release.

Install:

% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
$ sudo yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
% sudo yum install -y Percona-Server-server-56
% sudo /sbin/service mysql start
% sudo yum install -y --enablerepo=epel percona-server-56-mroonga
(% sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y groonga-tokenizer-mecab

2.5.6. CentOS 6 (with Percona Server 5.7 package)

You can use Percona Server packages version 5.7 on CentOS 6 since Mroonga 6.02 release.

Install:

% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
$ sudo yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
% sudo yum install -y --enablerepo=epel percona-server-57-mroonga
(% sudo /sbin/service mysql start)
(% tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
(% sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.7. CentOS 7 (with the official MariaDB package)

You can use CentOS's MariaDB packages (version 5.5.x) on CentOS 7.

Install:

% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y mariadb-server
% sudo systemctl start mariadb
% sudo yum install -y --enablerepo=epel mariadb-mroonga
(% sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.8. CentOS 7 (with the Oracle MySQL 5.6 package)

You can use Oracle's MySQL packages version 5.6 on CentOS 7.

Install:

% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y http://repo.mysql.com/mysql-community-release-el7-7.noarch.rpm
% sudo yum install -y --enablerepo=epel mysql-community-mroonga
(% sudo systemctl start mysqld)
(% sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.9. CentOS 7 (with the Oracle MySQL 5.7 package)

You can use Oracle's MySQL packages version 5.7 on CentOS 7 since Mroonga 5.09 release.

Install:

% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y http://repo.mysql.com/mysql-community-release-el7-7.noarch.rpm
% sudo yum install -y yum-utils
% sudo yum-config-manager --disable mysql56-community
% sudo yum-config-manager --enable mysql57-community
% sudo yum install -y --enablerepo=epel mysql57-community-mroonga
(% sudo systemctl start mysqld)
(% tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
(% sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.10. CentOS 7 (with Percona Server 5.6 package)

You can use Percona Server packages version 5.6 on CentOS 7 since Mroonga 5.02 release.

Install:

% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
% sudo yum install -y --enablerepo=epel percona-server-56-mroonga
(% sudo systemctl start mysqld)
(% sudo mysqladmin -u root password 'new-password')

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab

2.5.11. CentOS 7 (with Percona Server 5.7 package)

You can use Percona Server packages version 5.7 on CentOS 7 since Mroonga 6.02 release.

Install:

% sudo yum install -y http://packages.groonga.org/centos/groonga-release-1.2.0-1.noarch.rpm
% sudo yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
% sudo yum install -y --enablerepo=epel percona-server-57-mroonga
(% sudo systemctl start mysqld)
(% tmp_password=$(sudo grep 'A temporary password' /var/log/mysqld.log | sed -e 's/^.*: //'))
(% sudo mysqladmin -u root --password="${tmp_password}" password)

If you want to use MeCab as a tokenizer, install groonga-tokenizer-mecab package.

Install groonga-tokenizer-mecab package:

% sudo yum install -y --enablerepo=epel groonga-tokenizer-mecab