Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Bitcoin Node (CentOS 7)
# WARNING: 1G size ram won't work! Bitcoin "make" consumes lots of ram. Add swap first:
# Adapted from:
# Install the EPEL repository
sudo yum install -y epel-release
# Install requirements/dependencies
sudo yum install -y \
autoconf \
automake \
boost-devel \
gcc-c++ \
git \
libdb4-cxx \
libdb4-cxx-devel \
libevent-devel \
libtool \
openssl-devel \
# From
# Compile and install OpenSSL (Unfortunately the openssl thats provided with
# CentOS is lacking EC Libraries so we are going to have to download, build, and
# install a separate copy of OpenSSL)
cd ~
mkdir openssl
cd openssl
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
sudo make install
# Download and compile bitcoin
cd ~
git clone
cd ~/bitcoin
git checkout ${BITCOIN_TAG}
./configure --without-gui --prefix=/opt/bitcoin-${BITCOIN_TAG} PKG_CONFIG_PATH=/opt/openssl/lib/pkgconfig LIBS=-Wl,-rpath,/opt/openssl/lib
sudo make install
cd ~
rm -rf bitcoin openssl
sudo ln -s /opt/bitcoin-${BITCOIN_TAG}/bin/bitcoind /usr/bin/bitcoind
sudo ln -s /opt/bitcoin-${BITCOIN_TAG}/bin/bitcoin-cli /usr/bin/bitcoin-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment