forked from bitcoin/bitcoin
How to build ubtc contract local testnet
Gage edited this page Apr 18, 2018
·
6 revisions
this document is build steps on ubuntu 16.04
- you need install
git
first and install lib fc
sudo apt-get install -y git cmake libncurses5-dev libreadline-dev
git clone https://github.com/UnitedBitcoin/fc.git
cd fc
git submodule update --init --recursive
cmake .
make
sudo make install
- install dependencis for ubtc
sudo -s
apt-get update -y
apt-get install -y software-properties-common
add-apt-repository -y ppa:bitcoin/bitcoin
apt-get update -y
apt-get install -y libboost1.58-all-dev libminiupnpc-dev libssl-dev libevent-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libtool build-essential bsdmainutils g++
apt-get install -y libdb4.8-dev libdb4.8++-dev --allow-unauthenticated
apt-get install -y autoconf make g++ pkg-config git
apt-get install -y cmake libncurses5-dev libreadline-dev
- docker
If you want use docker to build ubtc, then you can use docker image ubtc/ubtcdev:latest
as ubtc development environment.
eg.
docker run -ti ubtc/ubtcdev:latest /bin/bash
- build ubtc
git clone https://github.com/UnitedBitcoin/UnitedBitcoin.git
cd UnitedBitcoin
fetch and checkout the branch you want build
./autogen.sh
./configure
make
There will be src/ubcd
and src/ubc-cli
after these steps.