From 12c2d0ee33f9e75a5c07cf6b129cfb9c12497513 Mon Sep 17 00:00:00 2001 From: Bobinson K B Date: Thu, 23 May 2019 23:21:01 +0530 Subject: [PATCH] building on Ubuntu 18.04 updated README to capture support building on Ubuntu 18.04 --- .gitignore | 1 + README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/.gitignore b/.gitignore index 5df52280..5e9bf5cd 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ object_database/* *.pyo .vscode .DS_Store +.idea \ No newline at end of file diff --git a/README.md b/README.md index 245e1388..11c4ca87 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,46 @@ Intro for new developers and witnesses ------------------------ This is a quick introduction to get new developers and witnesses up to speed on Peerplays blockchain. It is intended for witnesses plannig to join a live, already deployed blockchain. +# Building on Ubuntu 18.04 LTS and Installation Instructions + + The following dependencies were necessary for a clean install of Ubuntu 18.04 LTS: + + sudo apt-get install gcc-5 g++-5 cmake make libbz2-dev libdb++-dev libdb-dev libssl-dev openssl libreadline-dev autoconf libtool git + +## Build Boost 1.67.0 + + + + mkdir $HOME/src + cd $HOME/src + export BOOST_ROOT=$HOME/src/boost_1_67_0 + sudo apt-get update + sudo apt-get install -y autotools-dev build-essential libbz2-dev libicu-dev python-dev + wget -c 'http://sourceforge.net/projects/boost/files/boost/1.67.0/boost_1_67_0.tar.bz2/download' -O boost_1_67_0.tar.bz2 + [ $( sha256sum boost_1_67_0.tar.bz2 | cut -d ' ' -f 1 ) == "2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba" ] || ( echo 'Corrupt download' ; exit 1 ) + tar xjf boost_1_67_0.tar.bz2 + cd boost_1_67_0/ + ./bootstrap.sh "--prefix=$BOOST_ROOT" + ./b2 install + + + +## Building Peerplays + + + export BOOST_ROOT=/root/boost_1_67_0 + export CC=gcc-5 ; export CXX=g++-5 + cd $HOME/src + git clone https://github.com/peerplays-network/peerplays.git + mkdir $HOME/peerplays/build; cd $HOME/src/peerplays/build + git submodule update --init --recursive + cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release .. + make -j$(nproc) + + make install # this can install the executable files under /usr/local + + + Rest of the instructions on starting the chain remains same. Starting A Peerplays Node -----------------