configure: error: Cannot find OpenSSL's libraries Ubuntu 16.04
<p>What are the commands to instal mongdb PHP extension on Ubuntu 16.04 version? I have tried pecl install but stucks with a message:</p>

<pre><code>configure: error: Cannot find OpenSSL's libraries
</code></pre>

<p>I am running on Ubuntu 16.04 with PHP 7 please help.</p>

<p>I have installed libssl-dev, but that doesn't fix the problem..</p>

<pre><code>libssl-dev is already the newest version (1.0.2g-1ubuntu4.5).
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
</code></pre>

<p>Here my php version is 7 not 5.x as described in <a href="https://stackoverflow.com/questions/29262848/error-while-installing-mongo-driver-for-php-on-amazon-linux">Error while installing mongo driver for PHP on amazon linux</a></p>