<p>You will have to rebuild OpenSSL, since the build shipped by Fedora/Red Hat <a href="https://bugzilla.redhat.com/show_bug.cgi?id=319901" rel="nofollow noreferrer">does not include support for elliptic curve cryptography</a>, on which Bitcoin relies. So you have to build your own.</p>

<p>Once that's done, you can get on with building Bitcoin normally, provided you point it at your private build of OpenSSL with <code>-rpath</code>.</p>

<p>Or, you can just skip all the work and <a href="https://www.cryptorpms.com/" rel="nofollow noreferrer">use my existing Yum repository</a>. This also gives you standards-compliant paths, as well as an SELinux-enabled <code>bitcoind</code>. Read the RPM spec files if you're really interested in the build process.</p>

CC BY-SA 4.0
2013-03-28T00:46:50.577Z
2020-01-06T18:44:10.663Z
2020-01-06T18:44:10.663Z
Michael Hampton
<p>This is how I compiled bitcoind from the github source on Fedora 18.</p>

<pre><code>sudo yum install gcc-c++ make
sudo yum install boost-devel 
sudo yum install db4-devel
sudo yum install openssl-devel
sudo yum install rpm-build
sudo yum install lynx
sudo yum install python-devel
sudo yum install miniupnpc
sudo yum install miniupnpc-devel.i686
sudo yum install libdb-cxx.i686
sudo yum install libdb-cxx-devel.i686
</code></pre>

<p>now grab the latest tarball from: <a href="http://www.openssl.org/source/" rel="nofollow">http://www.openssl.org/source/</a>
save and untar it in a directory, let's say ~/installs/openssl_ecdsa</p>

<pre><code>cd ~/installs/openssl_ecdsa
./config
make
sudo make install
</code></pre>

<p>now pull the latest bitcoin source from github</p>

<pre><code>cd ~
git clone https://github.com/bitcoin/bitcoin.git
</code></pre>

<p>if you want the latest stable release,
 checkout the version number here: <a href="http://bitcoin.org/en/download" rel="nofollow">http://bitcoin.org/en/download</a></p>

<pre><code>git checkout 0.8.3 //latest stable at the moment
cd bitcoin/src
export OPENSSL_INCLUDE_PATH="/usr/local/ssl/include"
export OPENSSL_LIB_PATH="/usr/local/ssl/lib"
make -f makefile.unix
</code></pre>

CC BY-SA 3.0
2013-10-21T04:07:07.303Z
Also worked for me on Fedora 17, thanks!
iforce2d
CC BY-SA 3.0
2013-12-16T22:34:45.240Z
@TomvanderWoerdt Can you elaborate please?
Petr Peller
CC BY-SA 3.0
2013-08-04T08:58:07.637Z
You **really** shouldn't be doing a `sudo make install` on OpenSSL. This could potentially break your system.
Tom van der Woerdt
CC BY-SA 3.0
2013-08-03T06:29:58.500Z
2013-08-04T15:36:41.470Z
2013-08-04T15:36:41.470Z
Todamont
<p>You'll need to install these libraries:</p>

<ul>
<li>libssl - provided by <code>openssl</code> in Fedora</li>
<li>libboost - called <code>boost</code> in Fedora</li>
<li>libdb4.8 - called <code>db4.8</code> in Fedora</li>
<li>miniupnpc</li>
</ul>

<p>I'm not able to test this at the moment, but try something like this:</p>

<pre><code>yum install openssl boost db4.8 miniupnpc
</code></pre>

<p>Once those are installed, and their src or dev packages may be necessary, you can do the actual build itself:</p>

<pre><code>cd src/
make -f makefile.unix
</code></pre>

<p>Also requires openssl-devel</p>

CC BY-SA 3.0
2013-02-26T00:30:40.470Z
`In file included from alert.cpp:9:0:`<br/>
`key.h:16:49: fatal error: openssl/ec.h: No such file or directory`<br/>
`compilation terminated.`<br/>Maybe related to the [bug](https://bugzilla.redhat.com/show_bug.cgi?id=319901)?
hgajshb
CC BY-SA 3.0
2013-02-26T00:38:30.357Z
And there is no package db4.8, not at least in the default Fedora 18 repo. Is it in source repo?
hgajshb
CC BY-SA 3.0
2013-02-25T22:04:00.793Z
2013-04-08T18:10:40.983Z
2013-04-08T18:10:40.983Z
Colin Dean
<p>Tested on Fedora 20, 64-bit:</p>

<pre><code>$ sudo yum groupinstall -y "Development Tools" "Development Libraries"
$ sudo yum install -y gcc-c++ libtool swig pyqt4-devel python-psutil python-twisted wget protobuf-devel
$ wget -qO- 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz' | tar -xzv &amp;&amp; cd db*/build_unix
$ ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/usr/local/
$ make
$ sudo make install
$ cd; wget -qO- https://www.openssl.org/source/openssl-1.0.1i.tar.gz | tar -xzv &amp;&amp; cd o*
$ export CFLAGS="-fPIC"; ./config --prefix=/usr/local shared enable-ec enable-ecdh enable-ecdsa
$ make depend &amp;&amp; make all
$ sudo make install
$ cd; git clone git://github.com/bitcoin/bitcoin.git; cd bitcoin
$ ./autogen.sh &amp;&amp; ./configure LDFLAGS="-Wl,-rpath=/usr/local/lib64 -L/usr/local/lib/ -L/usr/local/lib64/" CPPFLAGS="-I/usr/local/include/"
$ make
$ sudo make install
$ mkdir ~/.bitcoin; wget -O ~/.bitcoin/bitcoin.conf https://raw.githubusercontent.com/averageradical/compile/gh-pages/example/bitcoin.conf
$ bitcoin-qt # or nohup bitcoind &amp;
$ bitcoin-cli help
</code></pre>

CC BY-SA 3.0
2014-08-18T19:56:01.923Z
2014-08-18T19:56:01.923Z
averageradical
<p>There are instructions for building on Ubuntu/Debian, but I want to build it in Fedora. </p>

CC BY-SA 3.0
2013-02-25T15:43:20.763Z
Did you try the linux build instructions in the bitcoin repo?
Nick ODell
CC BY-SA 3.0
2013-02-25T15:58:24.503Z
No, I don't know where to find them.
hgajshb
CC BY-SA 3.0
2013-02-25T16:19:18.827Z
https://github.com/bitcoin/bitcoin/tree/master/doc
Nick ODell
<installation><compiling>
How do I build Bitcoin in Fedora 18?
hgajshb
# How do I build Bitcoin in Fedora 18?

(Asked by: username_0 on 2013-02-25)

There are instructions for building on Ubuntu/Debian, but I want to build it in Fedora.

**Tags:** installation, compiling

> **Comments:**
> **username_1**: Did you try the linux build instructions in the bitcoin repo?  
> **username_0**: No, I don't know where to find them.  
> **username_1**: https://github.com/bitcoin/bitcoin/tree/master/doc  

---

## 4 answers

### Answer by username_2 on 2013-03-28. Score: 3 | Accepted answer

You will have to rebuild OpenSSL, since the build shipped by Fedora/Red Hat [does not include support for elliptic curve cryptography](https://bugzilla.redhat.com/show_bug.cgi?id=319901), on which Bitcoin relies. So you have to build your own.

Once that's done, you can get on with building Bitcoin normally, provided you point it at your private build of OpenSSL with `-rpath`.

Or, you can just skip all the work and [use my existing Yum repository](https://www.cryptorpms.com/). This also gives you standards-compliant paths, as well as an SELinux-enabled `bitcoind`. Read the RPM spec files if you're really interested in the build process.


---

### Answer by username_3 on 2013-08-03. Score: 3

This is how I compiled bitcoind from the github source on Fedora 18.
sudo yum install gcc-c++ make
sudo yum install boost-devel 
sudo yum install db4-devel
sudo yum install openssl-devel
sudo yum install rpm-build
sudo yum install lynx
sudo yum install python-devel
sudo yum install miniupnpc
sudo yum install miniupnpc-devel.i686
sudo yum install libdb-cxx.i686
sudo yum install libdb-cxx-devel.i686

now grab the latest tarball from: http://www.openssl.org/source/
save and untar it in a directory, let's say ~/installs/openssl_ecdsa
cd ~/installs/openssl_ecdsa
./config
make
sudo make install

now pull the latest bitcoin source from github
cd ~
git clone https://github.com/bitcoin/bitcoin.git

if you want the latest stable release,
 checkout the version number here: http://bitcoin.org/en/download
git checkout 0.8.3 //latest stable at the moment
cd bitcoin/src
export OPENSSL_INCLUDE_PATH="/usr/local/ssl/include"
export OPENSSL_LIB_PATH="/usr/local/ssl/lib"
make -f makefile.unix

> **Comments:**
> **username_6**: You **really** shouldn't be doing a `sudo make install` on OpenSSL. This could potentially break your system.  
> **username_4**: Also worked for me on Fedora 17, thanks!  
> **username_5**: @TomvanderWoerdt Can you elaborate please?  

---

### Answer by username_7 on 2013-02-25. Score: 0

You'll need to install these libraries:

libssl - provided by openssl in Fedora
libboost - called boost in Fedora
libdb4.8 - called db4.8 in Fedora
miniupnpc

I'm not able to test this at the moment, but try something like this:
yum install openssl boost db4.8 miniupnpc

Once those are installed, and their src or dev packages may be necessary, you can do the actual build itself:
cd src/
make -f makefile.unix

Also requires openssl-devel

> **Comments:**
> **username_0**: `In file included from alert.cpp:9:0:`<br/> `key.h:16:49: fatal error: openssl/ec.h: No such file or directory`<br/> `compilation terminated.`<br/>Maybe related to the [bug](https://bugzilla.redhat.com/show_bug.cgi?id=319901)?  
> **username_0**: And there is no package db4.8, not at least in the default Fedora 18 repo. Is it in source repo?  

---

### Answer by username_8 on 2014-08-18. Score: 0

Tested on Fedora 20, 64-bit:
$ sudo yum groupinstall -y "Development Tools" "Development Libraries"
$ sudo yum install -y gcc-c++ libtool swig pyqt4-devel python-psutil python-twisted wget protobuf-devel
$ wget -qO- 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz' | tar -xzv && cd db*/build_unix
$ ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/usr/local/
$ make
$ sudo make install
$ cd; wget -qO- https://www.openssl.org/source/openssl-1.0.1i.tar.gz | tar -xzv && cd o*
$ export CFLAGS="-fPIC"; ./config --prefix=/usr/local shared enable-ec enable-ecdh enable-ecdsa
$ make depend && make all
$ sudo make install
$ cd; git clone git://github.com/bitcoin/bitcoin.git; cd bitcoin
$ ./autogen.sh && ./configure LDFLAGS="-Wl,-rpath=/usr/local/lib64 -L/usr/local/lib/ -L/usr/local/lib64/" CPPFLAGS="-I/usr/local/include/"
$ make
$ sudo make install
$ mkdir ~/.bitcoin; wget -O ~/.bitcoin/bitcoin.conf https://raw.githubusercontent.com/username_8/compile/gh-pages/example/bitcoin.conf
$ bitcoin-qt # or nohup bitcoind &
$ bitcoin-cli help


---

