update for README

This commit is contained in:
Bobinson K B 2019-05-23 23:27:29 +05:30
parent 12c2d0ee33
commit d819afdaf8

View file

@ -6,40 +6,44 @@ This is a quick introduction to get new developers and witnesses up to speed on
The following dependencies were necessary for a clean install of Ubuntu 18.04 LTS: 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 ```
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 ## Build Boost 1.67.0
```
mkdir $HOME/src mkdir $HOME/src
cd $HOME/src cd $HOME/src
export BOOST_ROOT=$HOME/src/boost_1_67_0 export BOOST_ROOT=$HOME/src/boost_1_67_0
sudo apt-get update sudo apt-get update
sudo apt-get install -y autotools-dev build-essential libbz2-dev libicu-dev python-dev 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 wget -c 'http://sourceforge.net/projects/boost/files/boost/1.67.0/boost_1_67_0.tar.bz2/download'\
[ $( sha256sum boost_1_67_0.tar.bz2 | cut -d ' ' -f 1 ) == "2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba" ] || ( echo 'Corrupt download' ; exit 1 ) -O boost_1_67_0.tar.bz2
tar xjf boost_1_67_0.tar.bz2 [ $( sha256sum boost_1_67_0.tar.bz2 | cut -d ' ' -f 1 ) == "2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba" ] || ( echo 'Corrupt download' ; exit 1 )
cd boost_1_67_0/ tar xjf boost_1_67_0.tar.bz2
./bootstrap.sh "--prefix=$BOOST_ROOT" cd boost_1_67_0/
./b2 install ./bootstrap.sh "--prefix=$BOOST_ROOT"
./b2 install
```
## Building Peerplays ## 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)
export BOOST_ROOT=/root/boost_1_67_0 ake install # this can install the executable files under /usr/local
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. Rest of the instructions on starting the chain remains same.