<p>I fixed the issue by installing extra libraries, the whole list</p>

<pre><code>sudo apt-get install -y autoconf g++ make openssl libssl-dev libcurl4-openssl-dev

sudo apt-get install -y libcurl4-openssl-dev pkg-config

sudo apt-get install -y libsasl2-dev
</code></pre>

<p>Source: <a href="https://github.com/mongodb/mongo-php-driver/issues/138#issuecomment-184749966" rel="nofollow noreferrer">https://github.com/mongodb/mongo-php-driver/issues/138#issuecomment-184749966</a></p>

CC BY-SA 3.0
2016-11-03T10:36:18.780Z
2016-11-05T09:46:18.370Z
2016-11-05T09:46:18.370Z
David
<p>I am trying to build bitcoind on Ubuntu 16 64-bit. I have installed the dependencies and have built it fine many times on other machines.</p>

<p>During ./configure, I am getting</p>

<pre><code>checking whether the Boost::Unit_Test_Framework library is available... yes
checking for dynamic linked boost test... yes
checking for mismatched boost c++11 scoped enums... ok
checking for SSL... no
configure: error: openssl  not found.
</code></pre>

<p>I have run <code>sudo apt-get install libssl-dev</code> and tried it, also tried <code>brew install openssl</code>, still no dice.</p>

<p>Before, I was getting a missing pkg-config at this point, even though I had installed it. I installed pkgconf and also installed it via brew, and now it's complaining about openssl, which is definitely installed.</p>

<pre><code>$ which openssl
/usr/bin/openssl
</code></pre>

<p>Any ideas? Frankly, I'm stumped.</p>

<p>UPDATE:</p>

<p>I built openssl from source, now I'm getting this:</p>

<pre><code>checking for mismatched boost c++11 scoped enums... ok
checking for SSL... yes
checking for CRYPTO... yes
checking for EVENT... no
configure: error: libevent not found.
</code></pre>

<p>I'm not sure what is going on... it seems it cannot find packages installed via apt-get for some reason.</p>

CC BY-SA 3.0
2016-06-08T21:35:05.467Z
I didn't want to set this as an answer, because it's really not. I set up a new server with Ubuntu 14 and it worked the first time. Very strange. Did some directory paths change in Ubuntu 16?
Matthew Darnell
CC BY-SA 3.0
2016-06-09T07:25:27.033Z
I guess you didn't follow https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md (builds fine at ubuntu 16.04), Looks like you haven't installed `libevent-dev` and `libssl-dev`.
Jonas Schnelli
CC BY-SA 3.0
2016-06-09T21:00:25.050Z
I absolutely did install both of them, multiple times I uninstalled and installed via apt-get and brew, I tried both. It only progressed past each package in the ./configure file once I built from source.
Matthew Darnell
<ssl><openssl><dependencies><make>
Building on Ubuntu 16, missing SSL during ./configure
Matthew Darnell
# Building on Ubuntu 16, missing SSL during ./configure

(Asked by: username_0 on 2016-06-08)

I am trying to build bitcoind on Ubuntu 16 64-bit. I have installed the dependencies and have built it fine many times on other machines.

During ./configure, I am getting

```
checking whether the Boost::Unit_Test_Framework library is available... yes
checking for dynamic linked boost test... yes
checking for mismatched boost c++11 scoped enums... ok
checking for SSL... no
configure: error: openssl  not found.

```

I have run `sudo apt-get install libssl-dev` and tried it, also tried `brew install openssl`, still no dice.

Before, I was getting a missing pkg-config at this point, even though I had installed it. I installed pkgconf and also installed it via brew, and now it's complaining about openssl, which is definitely installed.

```
$ which openssl
/usr/bin/openssl

```

Any ideas? Frankly, I'm stumped.

UPDATE:

I built openssl from source, now I'm getting this:

```
checking for mismatched boost c++11 scoped enums... ok
checking for SSL... yes
checking for CRYPTO... yes
checking for EVENT... no
configure: error: libevent not found.

```

I'm not sure what is going on... it seems it cannot find packages installed via apt-get for some reason.

**Tags:** ssl, openssl, dependencies, make

> **Comments:**
> **username_0**: I didn't want to set this as an answer, because it's really not. I set up a new server with Ubuntu 14 and it worked the first time. Very strange. Did some directory paths change in Ubuntu 16?  
> **username_1**: I guess you didn't follow https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md (builds fine at ubuntu 16.04), Looks like you haven't installed `libevent-dev` and `libssl-dev`.  
> **username_0**: I absolutely did install both of them, multiple times I uninstalled and installed via apt-get and brew, I tried both. It only progressed past each package in the ./configure file once I built from source.  

---

## 1 answers

### Answer by username_2 on 2016-11-03. Score: 3

I fixed the issue by installing extra libraries, the whole list

```
sudo apt-get install -y autoconf g++ make openssl libssl-dev libcurl4-openssl-dev

sudo apt-get install -y libcurl4-openssl-dev pkg-config

sudo apt-get install -y libsasl2-dev

```

Source: <https://github.com/mongodb/mongo-php-driver/issues/138#issuecomment-184749966>


---

