Skip to content

Instantly share code, notes, and snippets.

@LTGIV
Created January 31, 2015 05:03
Show Gist options
  • Save LTGIV/51444cd6587bf36c7861 to your computer and use it in GitHub Desktop.
Save LTGIV/51444cd6587bf36c7861 to your computer and use it in GitHub Desktop.
bitcoind quick compile
#!/usr/bin/env bash
#
# Quick compile: bitcoind for Ubuntu v201501310502
# Louis T. Getterman IV (@LTGIV)
# www.GotGetLLC.com / www.opensour.cc
#
# Example Usage:
# ./compile-bitcoind.bash
#
# Compiling bitcoind (round 2)
# http://thad.getterman.org/post/109642292683/compiling-bitcoind-round-2
#
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -y autoconf autotools-dev build-essential git libdb5.1++-dev libboost-all-dev libprotobuf-dev libqrencode-dev libqt4-dev libssl-dev libtool pkg-config protobuf-compiler cowsay
mkdir -p ~/bin && mkdir -p ~/src
cd ~/src
git clone git://github.com/bitcoin/bitcoin.git
cd bitcoin
git checkout `git tag | grep ‘^v[0-9].[0-9].[0-9]$’ | tail -n 1`
./autogen.sh
./configure -with-incompatible-bdb
make
find src -maxdepth 1 -executable -type f | xargs -I {} mv -v {} ~/bin
/usr/bin/env cowsay “Okay, done! The latest version of Bitcoin is in $HOME/bin”
rm -rf ~/src/bitcoin
rm -rf ~/compile-bitcoind.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment