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 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 https://packages.groonga.org/centos/groonga-release-1.3.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.2. 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 https://packages.groonga.org/centos/groonga-release-1.3.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.3. 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 https://packages.groonga.org/centos/groonga-release-1.3.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.4. 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 https://packages.groonga.org/centos/groonga-release-1.3.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.5. 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 https://packages.groonga.org/centos/groonga-release-1.3.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.6. CentOS 6 (with MariaDB 10.1 package)

You can use MariaDB's MariaDB packages version 10.1 on CentOS 6 since Mroonga 7.06 release.

Create /etc/yum.repos.d/MariaDB.repo.

For 32-bit version:

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-x86
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

For 64-bit version:

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-1.3.0-1.noarch.rpm
% sudo yum install -y MariaDB-server
% sudo systemctl start mariadb
% sudo yum install -y --enablerepo=epel mariadb-10.1-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.7. CentOS 6 (with MariaDB 10.2 package)

You can use MariaDB's MariaDB packages version 10.2 on CentOS 6 since Mroonga 7.06 release.

Create /etc/yum.repos.d/MariaDB.repo.

For 32-bit version:

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos6-x86
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

For 64-bit version:

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-1.3.0-1.noarch.rpm
% sudo yum install -y MariaDB-server
% sudo systemctl start mariadb
% sudo yum install -y --enablerepo=epel mariadb-10.2-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 official MariaDB package)

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

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-1.3.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.9. 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 https://packages.groonga.org/centos/groonga-release-1.3.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.10. 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 https://packages.groonga.org/centos/groonga-release-1.3.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.11. 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 https://packages.groonga.org/centos/groonga-release-1.3.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.12. 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 https://packages.groonga.org/centos/groonga-release-1.3.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

2.5.13. CentOS 7 (with MariaDB 10.1 package)

You can use MariaDB's MariaDB packages version 10.1 on CentOS 7 since Mroonga 7.06 release.

Create /etc/yum.repos.d/MariaDB.repo with the following content:

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-1.3.0-1.noarch.rpm
% sudo yum install -y MariaDB-server
% sudo systemctl start mariadb
% sudo yum install -y --enablerepo=epel mariadb-10.1-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.14. CentOS 7 (with MariaDB 10.2 package)

You can use MariaDB's MariaDB packages version 10.2 on CentOS 7 since Mroonga 7.06 release.

Create /etc/yum.repos.d/MariaDB.repo with the following content:

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Install:

% sudo yum install -y https://packages.groonga.org/centos/groonga-release-1.3.0-1.noarch.rpm
% sudo yum install -y MariaDB-server
% sudo systemctl start mariadb
% sudo yum install -y --enablerepo=epel mariadb-10.2-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