Skip to content

Instantly share code, notes, and snippets.

@BlinkyStitt
Forked from andrewschaaf/gist:998886
Last active October 3, 2015 18:27
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save BlinkyStitt/2503687 to your computer and use it in GitHub Desktop.
Save BlinkyStitt/2503687 to your computer and use it in GitHub Desktop.
compiling bitcoind on ubuntu-server 12.04
sudo apt-get update
sudo apt-get install -y git-core build-essential libssl-dev libboost-all-dev libdb5.1-dev libdb5.1++-dev libgtk2.0-dev
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin/src
make -f makefile.unix clean; make -f makefile.unix USE_UPNP= bitcoind
# from #bitcoin-dev:
# sacarlson: USE_UPNP= : don't build upnp, USE_UPNP=0 : build but disable by default, USE_UPNP=1 : build but enable by default
# optionally,
strip bitcoind
@BlinkyStitt
Copy link
Author

Same commands work for namecoind if you just replace "bitcoin" with "namecoin"

@earthmeLon
Copy link

Got this error when grabbing bitcoind from apt on Ubuntu 12.04

"version" : 32400
"errors" : "URGENT: upgrade required, see http://bitcoin.org/dos for details"

Thanks for the quick solution.

@depperson
Copy link

I needed to add libminiupnpc-dev and libminiupnpc8. Thanks for the notes.

@b1nary
Copy link

b1nary commented Jan 23, 2014

damn... didnt see the gtk, now the uninstall procedure can beginn... -.-

@azilber
Copy link

azilber commented Feb 28, 2014

https://bitcointalk.org/index.php?topic=1315.0

Don't use libdb5.1 unless you enjoy having a non-portable wallet.dat

@virtuexru
Copy link

To find out how to setup your own bitcoind daemon server running locally on virtualbox & ubuntu, you can check out my guide here: Guide to compile & install Bitcoind on Ubuntu 12.04 using VirtualBox

@kostaz
Copy link

kostaz commented Aug 11, 2014

Nothing is said here about a correct version of Berkley DB, which has to be db4 or something.
Otherwise, the built-in wallet becomes incompatible.
:-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment