Since I was setting up an new Ubuntu 21.10 machine, I decided to do a quick bitcoin build and help anyone out who hasn't tried doing a build yet. Essentially you build the library dependencies, then you build bitcoin. Pretty simple but I did manage to get tripped up a bit. Here's the simplest path for those interested
sudo apt install -y build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 bison tag="v22.0" srcdir="$HOME/src/bitcoin" deps="$srcdir/depends" conf="$deps/$MACHTYPE/share/config.site" libpath="$deps/$MACHTYPE/lib" mkdir -p "$srcdir" git clone -b $tag https://github.com/bitcoin/bitcoin.git $srcdir cd $deps make # -j N ## for multicore cd "$srcdir" ./autogen.sh CONFIG_SITE=$conf ./configure make # -j N ## for multicore LD_LIBRARY_PATH="$libpath:$LD_LIBRARY_PATH" $srcdir/src/qt/bitcoin-qt &
And here's the breakdown.
Install the build utilities and compilers (
sudo apt ...
)Set up some local variable names (
tag
,srcdir
,deps
,conf
,libpath
)Make a local
src
directory to hold the buildCopy (
clone
) version 22.0 (tag
) of the source down into our directorySwitch to the
deps
(depends) directoryMake the library dependencies
Switch to the main source directory
Run
autogen
Tell
configure
that we built all the libraries and share it inCONFIG_SITE
Make the bitcoin binaries
Run
bitcoin-qt
making sure your freshly built libraries are in the path
Anyway, like I said, I got tripped up for some reason on CONFIG_SITE
and LD_LIBRARY_PATH
since I've been away from Linux for a while.
Next up is to try the Guix build. I just did a Nix build of the Trezor firmware and that wasn't to bad, so hopefully running Guix on Ubuntu won't be too bad either.
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments