Hyperledger Irohaをビルドする
やっぱgoとかわかんない(パッケージ関連が特に)のでC++でEnjoy!することにしました。IrohaはC++のHyperledgerで日本人が主体で開発をしているらしい…
github.com
しょっぱなからFind out Moreのリンクがことごとく切れてて瀕死なのだが…まぁいいや。
基本的な手順はこちらから。
cmakeのバージョンがチガウ…
$ sudo apt-get install cmake build-essential wget xsltproc autoconf automake libtool shtool unzip libssl-dev default-jdk
$ cd ~ $ git clone https://github.com/hyperledger/iroha.git $ cd iroha $ export IROHA_HOME=$(pwd) $ mkdir build $ cd build $ cmake ..
libpqがないというエラーがでるので追加する。
$ sudo apt-get install libpq-dev postgresql $ export LIBPQ_DIR=/usr/lib/postgresql/9.5 $ export LIBRARY_PATH=/usr/lib/postgresql/9.5/lib
気を取り直してやりなおし
$ cd ../ $ rm -rf build $ mkdir build $ cd build $ cmake ..
今度は成功する
$ make
google.protobuf.Empty is not definedのようなエラーが出る。
github.com
3.3.0をダウンロードする(めんどくさいのでtarで落とす)
https://github.com/google/protobuf/releases
$ tar zxvf protobuf-3.3.0.tar.gz $ ./autogen.sh $ ./configure $ make $ sudo make install
$ rm -rf schema/*.{cc,h} $ rm -rf ../external $ cd ../ $ rm -rf build $ mkdir build $ cd build $ cmake .. $ make
できた…かな? なんかgtestで止まってる…