Skip to content

Instantly share code, notes, and snippets.

@naoa
Last active April 18, 2016 04:56
Show Gist options
  • Save naoa/51165aa1d9e763cfc8869316e97ed044 to your computer and use it in GitHub Desktop.
Save naoa/51165aa1d9e763cfc8869316e97ed044 to your computer and use it in GitHub Desktop.
How to build Groonga development environment on Ubuntu 14.04
apt-get update -qq && apt-get install -y build-essential
apt-get -y install software-properties-common
add-apt-repository -y universe
add-apt-repository -y ppa:groonga/ppa
apt-get update
apt-get install -y mecab libmecab-dev mecab-naist-jdic
apt-get install -y debhelper autotools-dev pkg-config liblz4-dev zlib1g-dev libmsgpack-dev libzmq3-dev libevent-dev libpcre3-dev libstemmer-dev libjemalloc-dev libssl-dev
apt-get install -y git
apt-get install -y ruby ruby-dev
apt-get install -y dh-autoreconf
cd /usr/local/src
git clone https://github.com/groonga/groonga.git
cd groonga
sh autogen.sh
./configure --prefix=/usr --enable-debug
make
make install
gem install --no-ri --no-rdoc grntest
echo "status" >> status.test
grntest status.test
grntest status.test
N
========================================================================================================================
.
status 0.1020s [not checked]
========================================================================================================================
status
[
[
0,
0.0,
0.0
],
{
"alloc_count": 254,
"starttime": 1460885521,
"start_time": 1460885521,
"uptime": 0,
"version": "6.0.1-196-ge0e6191",
"n_queries": 0,
"cache_hit_rate": 0.0,
"command_version": 1,
"default_command_version": 1,
"max_command_version": 2
}
]
========================================================================================================================
tests/sec | tests | passes | failures | leaked | omitted | !checked |
9.16 | 1 | 0 | 0 | 0 | 0 | 1 |
# if prefer cmake
apt-get install -y cmake
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DGRN_WITH_DEBUG=on
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment