<h2>Install Git</h2>

<pre><code>sudo apt-get install git-core
</code></pre>

<h2>Dependency Build Instructions: Ubuntu &amp; Debian</h2>

<p>Build requirements:</p>

<pre><code>sudo apt-get install build-essential
sudo apt-get install libssl-dev
</code></pre>

<p>for Ubuntu 12.04+:</p>

<pre><code>sudo apt-get install libboost-all-dev
</code></pre>

<p>db4.8 packages are available at:
 <a href="https://launchpad.net/~bitcoin/+archive/bitcoin" rel="nofollow">https://launchpad.net/~bitcoin/+archive/bitcoin</a></p>

<p>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.</p>

<p>for other Ubuntu &amp; Debian:</p>

<pre><code>sudo apt-get install libdb4.8-dev
sudo apt-get install libdb4.8++-dev
sudo apt-get install libboost1.37-dev
</code></pre>

<p>(If using Boost 1.37, append <code>-mt</code> to the boost libraries in the makefile)</p>

<p>Optional:</p>

<pre><code>sudo apt-get install libminiupnpc-dev (see USE_UPNP compile flag)
</code></pre>

<h2>Retrieve and compile Bitcoin source</h2>

<pre><code>git clone git://github.com/bitcoin/bitcoin.git
cd bitcoin/src/
make -f makefile.unix
sudo cp bitcoind /usr/local/bin
</code></pre>

<p>(much of this pulled directly from the <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.txt#L55" rel="nofollow">build-unix.txt</a> instructions)</p>

CC BY-SA 3.0
2012-12-25T22:15:02.617Z
i am using redhat linux so i am not sure if these instructions apply?
Andrew Font
CC BY-SA 3.0
2012-12-26T00:53:38.850Z
@AndrewFont they do not. However, we are going outside bitcoin's scope, you should ask in a generic linux site...
o0'.
CC BY-SA 3.0
2012-12-25T17:37:17.053Z
2012-12-25T17:37:17.053Z
Colin Dean
<p>From another site (SO clone - <a href="http://www.rugatu.com/questions/15712/how-to-install-bitcoind-in-linux" rel="nofollow">http://www.rugatu.com/questions/15712/how-to-install-bitcoind-in-linux</a>):</p>

<p>Here the step-by-step setup. Follow the procedure as root, or as user but use sudo when needed. I'll use sudo here.</p>

<p>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:</p>

<pre><code>sudo nano /etc/apt/sources.list
</code></pre>

<p>and add to the end of the file the following line:</p>

<pre><code>deb http://ftp.us.debian.org/debian/ experimental main
</code></pre>

<p>save and exit.</p>

<p>2) Run the update:</p>

<pre><code>sudo apt-get update
</code></pre>

<p>3) Install bitcoind from the experimental repo:</p>

<pre><code>sudo apt-get install -t experimental bitcoind
</code></pre>

<p>4) comment out the experimental repo line in sources.list. </p>

CC BY-SA 3.0
2013-04-16T15:06:49.567Z
Apt? Redhat? You're missing something.
Tom van der Woerdt
CC BY-SA 3.0
2013-04-16T16:20:18.967Z
whoops! good call - sorry. I saw another answer mentioning apt-get
David Kassa
CC BY-SA 3.0
2013-04-16T14:59:19.047Z
2013-04-16T14:59:19.047Z
David Kassa
<p>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:</p>

<pre><code># 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
</code></pre>

<p>These RPMs aren't signed, so install them at your own risk. </p>

<hr>

<p>Don't want the RPM? Understandable. Get the compiled tarball from the bitcoin site (<a href="http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.1/bitcoin-0.8.1-linux.tar.gz/download" rel="nofollow">direct link</a>)</p>

<pre><code>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
</code></pre>

CC BY-SA 3.0
2013-04-16T15:08:47.310Z
2013-04-16T15:14:41.130Z
2013-04-16T15:14:41.130Z
Tom van der Woerdt
<pre><code>git clone git://github.com/bitcoin/bitcoin.git
cd bitcoin/src/
make -f makefile.unix
sudo cp bitcoind /usr/local/bin
</code></pre>

CC BY-SA 3.0
2012-12-25T22:10:01.157Z
i i get this error: g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/ec2-user/bitcoin/src -I/home/ec2-user/bitcoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/ec2-user/bitcoin/src/leveldb/include -I/home/ec2-user/bitcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
alert.cpp:5:29: fatal error: boost/foreach.hpp: No such file or directory
compilation terminated.
make: *** [obj/alert.o] Error 1
Andrew Font
CC BY-SA 3.0
2012-12-25T22:10:36.527Z
i am not using ubunuto as far as i can tell. I believe its redhat linux.
Andrew Font
CC BY-SA 3.0
2012-12-25T15:32:10.120Z
2012-12-25T15:32:10.120Z
o0'.
<p>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.</p>

CC BY-SA 3.0
2012-12-24T18:40:02.573Z
I don't understand your question. To run bitcoind on your server, you just... run it? Like, `./bitcoind`? What's the problem?
o0'.
CC BY-SA 3.0
2012-12-25T01:40:50.430Z
how do i install i guess is a better way to word it?
Andrew Font
CC BY-SA 3.0
2012-12-25T01:41:58.807Z
and for some reference i am using an amazon ec2 server so i am doing everything through terminal
Andrew Font
CC BY-SA 3.0
2012-12-25T05:16:30.833Z
If you're using Ubuntu, you can install it from a [ppa](https://launchpad.net/~bitcoin/+archive/bitcoin).
David Schwartz
<bitcoind><server><linux><installation>
How do i install bitcoind on my redhat linux server?
Andrew Font
# How do i install bitcoind on my redhat linux server?

(Asked by: username_0 on 2012-12-24)

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.

**Tags:** bitcoind, server, linux, installation

> **Comments:**
> **username_1**: I don't understand your question. To run bitcoind on your server, you just... run it? Like, `./bitcoind`? What's the problem?  
> **username_0**: how do i install i guess is a better way to word it?  
> **username_0**: and for some reference i am using an amazon ec2 server so i am doing everything through terminal  
> **username_2**: If you're using Ubuntu, you can install it from a [ppa](https://launchpad.net/~bitcoin/+archive/bitcoin).  

---

## 4 answers

### Answer by username_1 on 2012-12-25. Score: 4 | Accepted answer

git clone git://github.com/bitcoin/bitcoin.git
cd bitcoin/src/
make -f makefile.unix
sudo cp bitcoind /usr/local/bin

> **Comments:**
> **username_0**: i i get this error: g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/ec2-user/bitcoin/src -I/home/ec2-user/bitcoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/ec2-user/bitcoin/src/leveldb/include -I/home/ec2-user/bitcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/alert.d -o obj/alert.o alert.cpp alert.cpp:5:29: fatal error: boost/foreach.hpp: No such file or directory compilation terminated. make: *** [obj/alert.o] Error 1  
> **username_0**: i am not using ubunuto as far as i can tell. I believe its redhat linux.  

---

### Answer by username_3 on 2012-12-25. Score: 0

Install Git
sudo apt-get install git-core

Dependency Build Instructions: Ubuntu & Debian
Build requirements:
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)
Optional:
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)

> **Comments:**
> **username_0**: i am using redhat linux so i am not sure if these instructions apply?  
> **username_1**: @AndrewFont they do not. However, we are going outside bitcoin's scope, you should ask in a generic linux site...  

---

### Answer by username_4 on 2013-04-16. Score: 0

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.

> **Comments:**
> **username_5**: Apt? Redhat? You're missing something.  
> **username_4**: whoops! good call - sorry. I saw another answer mentioning apt-get  

---

### Answer by username_5 on 2013-04-16. Score: 0

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


---

