Saturday, September 02, 2017

Install Dash node from sources on Centos 6

As root:

cat /etc/centos-release
CentOS release 6.9 (Final)

yum -y install wget
yum update -y && reboot

yum groupinstall 'Development Tools'
yum install pkgconfig

rpm --import
wget -O /etc/yum.repos.d/slc6-devtoolset.repo
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++

Install Berkeley DB

tar -xzvf db-4.8.30.NC.tar.gz
cd ./db-4.8.30.NC
cd build_unix
../dist/configure --prefix=/usr  --enable-compat185  --enable-dbm --disable-static --enable-cxx
make install

Install ZeroMQ (from sources)

tar xzvf zeromq-4.0.3.tar.gz
cd zeromq-4.0.3
make install

yum install boost boost-doc
wget -O /etc/yum.repos.d/enetres.repo
yum install boost-devel

yum install openssl openssl-devel

yum install libevent2-devel

useradd dash
passwd dash

Login as dash:

mkdir dashcore
cd dashcore
git clone -b v0.12.2.x
cd dash
add m4_pattern_allow(PKG_CONFIG_LIBDIR) to
source scl_source enable devtoolset-2

export PKG_CONFIG_PATH=/usr/lib/pkgconfig/   (for ZeroMQ lib)

you need to make sure you have more than 5Go free RAM


Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?