理想未来ってなんやねん

娘可愛い。お父さん頑張る。

Mac(Leopard)にhypertableをインストールしてみる。

Googleの巨大な検索システムを支えているデータベース、BigTableのクローンであるhypertableLeopardにインストールしてみます。
尚、必要なモジュールのインストールにMacPorts使っているので、入っていない方はどこかを参考にインストールしてください。

hypertableについて知りたい方はこちら。
d:id:pcmaster:20080210:1202532499

手順1:buildするのに必要なportsMacPortsでインストールする。

$ sudo port install git-core 
$ sudo port install cogito 
$ sudo port install cmake 
$ sudo port install boost
$ sudo port install log4cpp
$ sudo port install expat

gitのインストールがうまく行かない場合はこの辺を参考に
d:id:pcmaster:20080210:1202659625

手順2:gitで、hypertableをダウンロードする。

gitで、hypertableをダウンロードします。
は適当に書き換えてください。

$ git config --global user.name "<your name>"
$ git config --global user.email "<your email>"
$ mkdir ~/src
$ cd ~/src
$ git clone git://scm.hypertable.org/pub/repos/hypertable.git

参考:http://code.google.com/p/hypertable/wiki/SourceCode?tm=4

手順3:ビルド、インストールする

$ mkdir -p ~/build/hypertable
$ cd ~/build/hypertable
$ cmake -DCMAKE_INSTALL_PREFIX= -DCMAKE_BUILD_TYPE="Debug" ~/src/hypertable
$ mkdir ~/hypertable
$ make install DESTDIR=~/hypertable

こんな感じで。
インストールまではMacでもサクッとできました。

明日は実際に使ってみようと思います。

追記

軽く触った感じ、make testの際の16/17 Testing hypertableがFailedになるのが気になりますが、
チュートリアルを参考に試してみると、普通に使えますね。
http://code.google.com/p/hypertable/wiki/HQLTutorial