Last active
June 26, 2017 08:43
-
-
Save yamori813/c50428445ec6a1ff39defc125362adcf to your computer and use it in GitHub Desktop.
Jubatus build on FreeBSD 10.3R/amd64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
必要なパッケージをインストールします | |
% sudo pkg install gcc48 | |
gcc49にしなかったのは特に理由はないです。 | |
% sudo pkg install pkgconf | |
% sudo pkg install python27 | |
% sudo pkg install oniguruma5 | |
ビルド用の環境変数設定 | |
% setenv CC gcc48 | |
% setenv CXX g++48 | |
log4cxxのpakageはclangでビルドされていgccでビルドするjubatusでリンクするとエラーで | |
リンクできないのでportsをいじってgcc48でコンパイルした物をインストールしておきます。 | |
msgpack-0.5.7のビルド(Jubatusが1.x系に対応してないので。FreeBSDには0.x系のports,pkgありません) | |
0.5.7で作られるlibtoolは古くてFreeBSD 10でsoを作らないので、ac/ltmain.shを適当なものと | |
入れ替えます。 | |
% ./configure | |
% make | |
% sudo make install | |
jubatus_mpioのビルド | |
% git clone https://github.com/jubatus/jubatus-mpio | |
% cd jubatus-mpio | |
% ./bootstrap | |
% ./configure | |
% make | |
% sudo make install | |
jubatus_msgpack-rpc-0.4.4のビルド | |
% setenv LDFLAGS -L/usr/local/lib | |
% git clone https://github.com/jubatus/jubatus-msgpack-rpc.git | |
% cd jubatus-msgpack-rpc/cpp/ | |
% ./bootstrap | |
% ./configure | |
% make | |
% sudo make install | |
jubatus_coreのビルド | |
% setenv PKG_CONFIG_PATH /usr/local/lib/pkgconfig | |
% git clone https://github.com/jubatus/jubatus_core.git | |
% cd jubatus_core | |
% python2.7 ./waf configure | |
% python2.7 ./waf build | |
% sudo python2.7 ./waf install | |
jubatusのビルド | |
% git clone https://github.com/jubatus/jubatus.git | |
% cd jubatus | |
なぜかmsgpackをg++48でリンクすると落ちるので、システムのc++を使ってリンクします | |
% setenv LD c++ | |
% python2.7 ./waf configure | |
% python2.7 ./waf build | |
% sudo python2.7 ./waf install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment