Last active
October 11, 2021 19:21
-
-
Save il-katta/24924d7bc4e11a22b67db532f74871f4 to your computer and use it in GitHub Desktop.
install bitcoin-core ( with gui ) on Centos Stream ( or Centos 8 )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -xe | |
# db4 | |
sudo dnf install -y gcc-c++ autoconf make patch | |
wget https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/install_db4.sh | |
sudo mkdir -p /usr/src/db4 | |
sudo chown $(whoami) /usr/src/db4 | |
bash install_db4.sh /usr/src/db4 | |
# miniupnp | |
wget https://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-2.0.20180203.tar.gz -O miniupnpc-2.0.20180203.tar.gz | |
tar xfvz miniupnpc-2.0.20180203.tar.gz | |
pushd miniupnpc-2.0.20180203 | |
gmake | |
sudo bash -c "INSTALLPREFIX=/usr make install" | |
sudo ldconfig | |
popd | |
# bitcoin deps | |
sudo dnf install -y gcc-c++ autoconf make # already installed before ... | |
sudo dnf install -y automake boost-devel libevent-devel libtool openssl-devel cppzmq-devel zeromq-devel qrencode-devel python3 | |
echo "enable powertools" | |
sudo nano /etc/yum.repos.d/CentOS-*-PowerTools.repo | |
sudo dnf install -y qt5-qttools-devel qt5-qtbase-devel | |
# bitcoin build | |
wget https://github.com/bitcoin/bitcoin/archive/v0.20.1.tar.gz -O bitcoin-0.20.1.tar.gz | |
tar xfvz bitcoin-0.20.1.tar.gz | |
pushd bitcoin-0.20.1.tar.gz | |
export BDB_PREFIX='/usr/src/db4/db4' | |
./configure --with-miniupnpc --enable-upnp-default BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" CFLAGS="-march=native -O2" | |
make -j$(nproc) | |
sudo make install | |
popd | |
# https://github.com/bitcoin/bitcoin/tree/master/contrib/qos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment