How to build bitshares on Ubuntu14.04

Source

build ubuntu

Prerequisite

sudo apt-get install cmake make libbz2-dev libdb++-dev libdb-dev libssl-dev openssl libreadline-dev autoconf libtool git automake libcurl4-openssl-dev

Install gcc-4.9

apt-get install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9

Install boost

Failed to build it on a 1G ram machine.
Switch to 4G and success.

BOOST_ROOT=$HOME/opt/boost_1_57_0
sudo apt-get update
sudo apt-get install autotools-dev build-essential libbz2-dev libicu-dev python-dev
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.bz2/download' -O boost_1_57_0.tar.bz2
[ $( sha256sum boost_1_57_0.tar.bz2 | cut -d ' ' -f 1 ) == "910c8c022a33ccec7f088bd65d4f14b466588dda94ba2124e78b8c57db264967" ] || ( echo 'Corrupt download' ; exit 1 )
tar xjf boost_1_57_0.tar.bz2
cd boost_1_57_0/
./bootstrap.sh "--prefix=$BOOST_ROOT"
./b2 install

Build bitshare

git clone --recurse-submodules https://github.com/RichardWeiYang/bitshares-core.git
cd bitshares-core/
cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Debug .
make

Setup NTP

sudo timedatectl set-ntp false
sudo apt-get install ntp

Build on 16.04

It is so easy to build on 16.04 -_-

sudo apt-get install cmake make libbz2-dev libdb++-dev libdb-dev libssl-dev openssl libreadline-dev autoconf libtool git automake libcurl4-openssl-dev autotools-dev build-essential libbz2-dev libicu-dev python-dev libboost-all-dev

git clone https://github.com/RichardWeiYang/bitshares-core.git
cd bitshares-core/
git submodule update --init --recursive

cmake  -DCMAKE_BUILD_TYPE=Debug .
make
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,132评论 0 10
  • 这篇文章我们来谈一谈“无所谓”。 不知道你有没有细心观察过,在你的身边总会有一些“无所谓”的人,无论是朋友聚餐还是...
    栉风沐雨1阅读 4,811评论 1 1
  • 在时间的长河中,无论亲情,爱情,友情,兄弟之情,只能跟随时间的长河随波逐流,所有的情感,都会被人们渐渐遗忘。 可他...
    魂狼阅读 1,469评论 0 1
  • 2017年的最后一天,娱乐圈又一个x,李小璐疑似出轨,我等老阿姨虽然不知道这个Pcone,是何许人也。但也被这个消...
    安歌长乐阅读 2,350评论 0 0
  • 三月的柳絮飘飞,天真烂漫的孩童在田野上自由自在地玩耍。吹起柳枝制造的竖笛,带着鲜花编织的皇冠,在扮家家的游戏中,体...
    馨雪清菡阅读 3,693评论 12 5