LoginSignup
3
2

More than 5 years have passed since last update.

Xampp@CentOS7 に Mroonga を導入するメモ

Last updated at Posted at 2015-05-27

XAMPP for Linux + CentOS7 Linux 64bit環境に groonga/mroonga を導入した記録.
(特に面倒・複雑な部分はありません.)

導入環境

  • OS: CentOS Linux release 7.1.1503 (Core) x86_64
  • XAMPP: XAMPP 5.6.3
  • XAMPPインストール先: /opt/lampp

0.必要なパッケージの導入

% sudo yum install -y wget tar gcc-c++ make mecab-devel
% sudo yum install -y cmake ncurses-devel

1. MySQLの準備

  • 事前にMySQLのSourceを取得
  • XAMPP(5.6.3) の場合,mysql-5.6.21 なので, mysql-5.6.21.tar.gz を用意
  • ※ MySQL は make するだけで make install はしない
% tar xvzf mysql-5.6.21.tar.gz
% cd mysql-5.6.21
% cmake && make

2. Groongaの導入

% wget http://packages.groonga.org/source/groonga/groonga-5.0.3.tar.gz
% tar xvzf groonga-5.0.3.tar.gz
% cd groonga-5.0.3
% ./configure --prefix=/opt/lampp --libdir=/opt/lampp/lib/mysql --with-package-platform=redhat
% make
% sudo make install

3. Mroongaの導入

% wget http://packages.groonga.org/source/mroonga/mroonga-5.02.tar.gz
% tar xvzf mroonga-5.02.tar.gz
% cd mroonga-5.02
% PKG_CONFIG_PATH=/opt/lampp/lib/mysql/pkgconfig/ \
  ./configure\
     --with-mysql-source=/****/mysql-5.6.21\
     --with-mysql-config=/opt/lampp/bin/mysql_config\
     --prefix=/opt/lampp
% make
% sudo make install
% mysql -u root -p < /opt/lampp/share/mroonga/install.sql 

configure の option に注意してください

これで完成です :laughing:

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2