sudo apt-get update

# to uninstall deb version
sudo apt-get -y --purge remove libboost-all-dev libboost-doc libboost-dev

# to uninstall the version which we installed from source
sudo rm -f /usr/lib/libboost_*

sudo apt-get -y install build-essential g++ python-dev autotools-dev libicu-dev libbz2-dev


cd
wget http://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.gz
tar -zxvf boost_1_55_0.tar.gz
cd boost_1_55_0

# get the no of cpucores to make faster
cpuCores=`cat /proc/cpuinfo | grep "cpu cores" | uniq | awk '{print $NF}'`
echo "Available CPU cores: "$cpuCores

./bootstrap.sh  # this will generate ./b2

sudo ./b2 --with=all -j $cpuCores install

sudo apt-get install build-essential libtool autotools-dev automake pkg-config libevent-dev bsdmainutils libminiupnpc-dev libgmp3-dev libdb-dev libdb++-dev libgmp3-dev lzma-dev zlib1g-dev zlib1g libgmp-dev

cd ~
git clone https://github.com/memeticofficial/pepecoin-memetic.git
cd pepecoin-memetic/src
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
tar xvf openssl-1.0.2u.tar.gz
mv openssl-1.0.2u openssl
cd openssl
./Configure linux-x86_64
make
cd ..
export OPENSSL_INCLUDE_PATH="./openssl/include"
export OPENSSL_LIB_PATH="./openssl"
make -j4 -f makefile.unix USE_UPNP=-
strip pepecoind
echo "Run ./pepecoind help for more info"%
