LoginSignup
6
6

More than 5 years have passed since last update.

Mac OS X Mavericksでjubatusをインストールするまでの手順

Last updated at Posted at 2014-05-09

gw_さんコメントありがとうございます。
自分がまとめたインストール方法は、古い対処法となってしまいました。

対応いただいたということで、brewでぶっこませていただきましょうm(__)m

# gw_さんのコメントより
brew tap jubatus/jubatus
brew install jubatus

--

下記非推奨

公式に、brewでいれろって書いてたので、
brew tap jubatus/jubatus && brew install jubatusしても、
インストールできなかったので調査してみた。

とりあえず、ライブラリのインストール

brew install libtool msgpack glog pkg-config oniguruma mecab
brew install -v --c zookeeper

issueに書いてたインストール手順流したらいけた。

参考: support for 10.9 (Mavericks) · Issue #11 · jubatus/homebrew-jubatus https://github.com/jubatus/homebrew-jubatus/issues/11

cd /usr/local/src/
git clone https://github.com/gwtnb/jubatus-mpio.git
git clone https://github.com/gwtnb/jubatus-msgpack-rpc.git
git clone https://github.com/gwtnb/jubatus.git

# jubatus-mpio
cd jubatus-mpio
git checkout -b libc++11 origin/libc++11
./bootstrap
CXXFLAGS=-std=gnu++11 ./configure --prefix=$HOME/local
make -j
make install
cd ..

# jubatus-msgpack-rpc
cd jubatus-msgpack-rpc
git checkout -b libc++11 origin/libc++11
cd cpp
./bootstrap
CXXFLAGS="-std=gnu++11" ./configure --prefix=$HOME/local --with-jubatus-mpio=$HOME/local
make -j
make install
cd ../..

# jubatus
cd jubatus
git checkout -b libc++11-0.5.3 origin/libc++11-0.5.3
CXXFLAGS="-std=gnu++11 -I$HOME/local/include" LDFLAGS="-L$HOME/local/lib" ./waf configure --enable-zookeeper --prefix=$HOME/local
./waf
./waf install

最後に環境変数追加し、動作確認

export PATH=$PATH:$HOME/local/bin

jubaclassifier -f ~/local/share/jubatus/example/config/classifier/pa.json
I0509 16:41:30.883137 2065683216 server_util.cpp:322] starting jubaclassifier 0.5.3 RPC server at 192.168.54.77:9199
...

テストしてないし推奨できないって、issueでオーナーが書いてたけど、実行できたのが確認できた。

あとは、チュートリアルで遊んでみよう。
チュートリアル — Jubatus http://jubat.us/ja/tutorial.html

6
6
2

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
6
6