How to build and install Bitcoin on CentOS 7
The
following instructions show you how to configure, compile, and install Bitcoin
0.16.0
Update your operating system packages
The
first step is to always make sure your operating system and all of it’s
packages are up-to-date.
yum
upgrade
Adding EPEL repository
Bitcoin
requires a few libraries that are not provided by the default CentOS package
repository. We could build these libraries from source but a better option is
to use EPEL.
Installing Dependencies
The
following packages are required to build and install bitcoin from source.
yum install autoconf automake gcc-c++ libdb4-cxx libdb4-cxx-devel boost-devel
openssl-devel libtool libevent-devel
Build and install OpenSSL required dependency.
We
are going to have download, build, and install a separate copy of OpenSSL.
cd /usr/src
wget https://www.openssl.org/source/openssl-1.0.1l.tar.gz
tar zxvf openssl-1.0.1l.tar.gz
cd openssl-1.0.1l
export CFLAGS="-fPIC"
./config --prefix=/opt/openssl shared enable-ec enable-ecdh enable-ecdsa
make all
make install
cd /usr/src
wget https://bitcoincore.org/bin/bitcoin-core-0.16.0/bitcoin-0.16.0.tar.gz
tar xzvf bitcoin-0.16.0.tar.gz
cd bitcoin-0.16.0.tar.gz
./autogen.sh
./configure --prefix=/opt/bitcoin PKG_CONFIG_PATH=/opt/openssl/lib/pkgconfig LIBS=-Wl,-rpath,/opt/openssl/lib
make
make install
No comments:
Post a Comment