I have recently created an api that runs the bitcoind commands. I had it running on another server, but it was setup by someone else. I have been searching for sensible instructions on how to install bitcoind on my new server, but can't find any.
sudo apt-get install git-core
Dependency Build Instructions: Ubuntu & Debian
sudo apt-get install build-essential sudo apt-get install libssl-dev
for Ubuntu 12.04+:
sudo apt-get install libboost-all-dev
db4.8 packages are available at: https://launchpad.net/~bitcoin/+archive/bitcoin
Ubuntu 12.10 has packages for libdb5.1-dev and libdb5.1++-dev, but using these will break binary wallet compatibility, and is not recommended.
for other Ubuntu & Debian:
sudo apt-get install libdb4.8-dev sudo apt-get install libdb4.8++-dev sudo apt-get install libboost1.37-dev
(If using Boost 1.37, append
-mt to the boost libraries in the makefile)
sudo apt-get install libminiupnpc-dev (see USE_UPNP compile flag)
Retrieve and compile Bitcoin source
git clone git://github.com/bitcoin/bitcoin.git cd bitcoin/src/ make -f makefile.unix sudo cp bitcoind /usr/local/bin
(much of this pulled directly from the build-unix.txt instructions)
From another site (SO clone - http://www.rugatu.com/questions/15712/how-to-install-bitcoind-in-linux):
Here the step-by-step setup. Follow the procedure as root, or as user but use sudo when needed. I'll use sudo here.
1) Add the experimental repository to get the latest version of bitcoind. To do so, run nano (or your preferred text editor) to open the sources.list:
sudo nano /etc/apt/sources.list
and add to the end of the file the following line:
deb http://ftp.us.debian.org/debian/ experimental main
save and exit.
2) Run the update:
sudo apt-get update
3) Install bitcoind from the experimental repo:
sudo apt-get install -t experimental bitcoind
4) comment out the experimental repo line in sources.list.
The easiest way is to just download an RPM that does all of this for you. I provide one on my website for both i686 and x86_64:
# 32 bit yum install http://tvdw.eu/bitcoin-0.8.1-1.el6.i686.rpm # 64 bit yum install http://tvdw.eu/bitcoin-0.8.1-1.el6.x86_64.rpm # Now you can just run the client bitcoind
These RPMs aren't signed, so install them at your own risk.
Don't want the RPM? Understandable. Get the compiled tarball from the bitcoin site (direct link)
wget http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.1/bitcoin-0.8.1-linux.tar.gz/download tar -xfv bitcoin-0.8.1-linux.tar.gz cd bitcoin-0.8.1-linux ./32/bitcoind