Build libbitcoin from scratch

server | install | source | source-full | client | wallet

THIS IS A DRAFT - testing on debian11

Requirements

instructions taken from the README

apt install g++ gcc
apt install build-essential autoconf automake libtool pkg-config
apt install libboost-all-dev
apt install libzmq3-dev
apt install libnorm-dev

Node install

git clone --branch version3 https://github.com/libbitcoin/libbitcoin-system.git
git clone --branch version3 https://github.com/libbitcoin/libbitcoin-database.git
git clone --branch version3 https://github.com/libbitcoin/libbitcoin-consensus.git
git clone --branch version3 https://github.com/libbitcoin/libbitcoin-blockchain.git
git clone --branch version3 https://github.com/libbitcoin/libbitcoin-network.git
git clone --branch version3 https://github.com/libbitcoin/libbitcoin-node.git
git clone --branch version3 https://github.com/libbitcoin/libbitcoin-server.git

cd libbitcoin-system/       #  57m0.379s
cd libbitcoin-database/     # 20m23.521s + install
cd libbitcoin-consensus/    #  1m20.444s
cd libbitcoin-blockchain/   # 17m36.328s
cd libbitcoin-network/      # 28m42.263s
cd libbitcoin-node/     # 26m58.624s

git branch

Client build

git clone --branch version3 https://github.com/libbitcoin/libbitcoin-protocol.git
git clone --branch version3 https://github.com/libbitcoin/libbitcoin-client.git
git clone --branch version3 https://github.com/libbitcoin/libbitcoin-explorer.git

cd libbitcoin-protocol/
cd libbitcoin-client/
cd libbitcoin-explorer/

Build

./autogen.sh
./configure --sysconfdir=/etc --localstatedir=/var
echo $MAKEFLAGS
time make
make install
grep local /etc/ld.so.conf
grep local /etc/ld.so.conf.d/*.conf
ldconfig

Server install

grab either the latest release –or– simply use the version3 branch

cd libbitcoin-server/
git branch # version3
screen -S build
./autogen.sh
./configure --sysconfdir=/etc --localstatedir=/var
time make
echo $MAKEFLAGS

Troubleshooting

*** Warning: Linking the shared library src/libbitcoin-protocol.la against the
*** static library libprotokit.a is not portable!
g++: error: libprotokit.a: No such file or directory
make: *** [Makefile:873: src/libbitcoin-protocol.la] Error 1

==> –disable-shared did not help and results with

*** Warning: Linking the shared library src/libbitcoin-protocol.la against the
*** static library libprotokit.a is not portable!
ar: libprotokit.a: No such file or directory
make: *** [Makefile:873: src/libbitcoin-protocol.la] Error 1

==> …

Resources

troubles

https://github.com/libbitcoin/libbitcoin-explorer/issues/712

https://github.com/libbitcoin/libbitcoin-explorer/issues/717


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun