Skip to content

Bitcoin Core Build from Source

Dan Janosik edited this page Dec 9, 2020 · 5 revisions

Build Bitcoin Core from Source

  1. Before compiling Bitcoin Core, you'll need to install Berkeley DB 4.8:

    wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
    unzip db-4.8.30.zip
    cd db-4.8.30
    cd build_unix/
    ../dist/configure --prefix=/usr/local --enable-cxx
    make
    make install
    
  2. Compile Bitcoin Core

On Ubuntu 20.04

git clone git@github.com:bitcoin/bitcoin.git
cd bitcoin
apt install build-essential autoconf libtool autotools-dev automake bsdmainutils pkg-config libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libevent-dev libcanberra-gtk-module python3
./autogen.sh

./configure --disable-wallet

# or...

# on 2020-12-09 had compile error in a test, instead used:
./configure --disable-wallet --disable-tests --disable-bench --disable-man

make

# or, for signet?
make -j5