Skip to content

BaerChain Compile Guide

woodbaer edited this page Aug 15, 2019 · 3 revisions

BaerChain Compile Guide

Environmental requirements

  • BaerChain requires C++14 support, requires g++5.0 or higher
  • BaerChain requires CMake support and requires cmake3.10 and above
  • BaerChain requires environment version OS ubuntu18.04, linux version 3.10 or higher

Dependence

apt-get install -y cmake git libboost1.65-all-dev libssl-dev libsnappy-dev libleveldb-dev libgmp-dev libscrypt-dev libjsoncpp-dev libargtable2-dev libcurl4-openssl-dev libhiredis-dev doxygen libmicrohttpd-dev libgflags-dev
Jsonrpccpp 1.1
  • Compile command
git clone git://github.com/cinemast/libjson-rpc-cpp.git
cd libjson-rpc-cpp
git checkout v1.1.1
mkdir build
cd build
cmake .. && make
sudo make install
sudo ldconfig
Rocksdb
  • Compile command
git clone https://github.com/facebook/rocksdb.git
cd rocksdb
git checkout 6.1.fb
mkdir build
cd build 
cmake ..
make
cp librocksdb.* /usr/local/lib/
cd ..
cp -r include/rocksdb /usr/local/include/

Compile command

Clone this wiki locally