さくらのVPSにUbuntu 10.04 LTSを入れたので、まっさらな状態からgroongaストレージエンジンを入れるまでのログ。
groonga-0.7.6のインストール。
sudo chown kamipo /usr/local/{,*} sudo aptitude install build-essential pkg-config sudo aptitude install mecab libmecab-dev mecab-ipadic-utf8 cd /usr/local/src wget http://groonga.org/files/groonga/groonga-0.7.6.tar.gz tar zxvf groonga-0.7.6.tar.gz cd groonga-0.7.6 ./configure && make && make install
mysql-5.1.50のインストール。
sudo aptitude install ncurses-dev cd /usr/local/src wget http://ftp.iij.ad.jp/pub/db/mysql/Downloads/MySQL-5.1/mysql-5.1.50.tar.gz tar zxvf mysql-5.1.50.tar.gz cd mysql-5.1.50 ./configure '--prefix=/usr/local/mysql' '--localstatedir=/usr/local/mysql/data' '--libexecdir=/usr/local/mysql/bin' '--with-comment=MySQL Community Server (GPL)' '--with-server-suffix=' '--enable-thread-safe-client' '--enable-local-infile' '--with-pic' '-- with-fast-mutexes' '--with-client-ldflags=-static' '--with-mysqld-ldflags=-static' '--with-zlib-dir=bundled' '--with-big-tables' '--with-ssl ' '--with-readline' '--with-embedded-server' '--with-partition' '--with-innodb' '--without-ndbcluster' '--with-archive-storage-engine' '--wi th-blackhole-storage-engine' '--with-csv-storage-engine' '--without-example-storage-engine' '--with-federated-storage-engine' '--with-extra- charsets=complex' 'CFLAGS=-g -O3' 'CXXFLAGS=-g -O3' make && make install ./scripts/mysql_install_db
groonga-storage-engine-0.1のインストール。
cd /usr/local/src wget http://github.com/downloads/mroonga/mroonga/groonga-storage-engine-0.1.tar.gz tar zxvf groonga-storage-engine-0.1.tar.gz cd groonga-storage-engine-0.1 ./configure --with-mysql=/usr/local/src/mysql-5.1.50 --libdir=/usr/local/mysql/lib/mysql/plugin make && make install
mysqlにpluginを読み込む。
/usr/local/mysql/bin/mysqld_safe --skip-networking & /usr/local/mysql/bin/mysql -u root -e "INSTALL PLUGIN groonga SONAME 'libgroonga_storage_engine.so'" /usr/local/mysql/bin/mysql -u root -e "SHOW PLUGINS"