How to install libssl-dev for OpenSSL 1.0.2a version on Ubuntu 14.04?

Erik picture Erik · Apr 19, 2015 · Viewed 12.7k times · Source

The command apt-cache policy libssl-dev shows the following output:

libssl-dev:
  Installed: (none)
  Candidate: 1.0.1f-1ubuntu2.11
  Version table:
     1.0.1f-1ubuntu2.11 0
        500 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     1.0.1f-1ubuntu2 0
        500 http://mirrors.digitalocean.com/ubuntu/ trusty/main amd64 Packages

And when I install it via apt-get install libssl-dev get 1.0.1f version. But I've installed the latest openssl-1.0.2a from source code by the following command:

wget http://www.openssl.org/source/openssl-1.0.2a.tar.gz
tar -xvzf openssl-1.0.2a.tar.gz
cd openssl-1.0.2a
./config --prefix=/usr/   
make
sudo make install 

How could I install libssl-dev-1.0.2a version to be compatible with my openssl-1.0.2a?

Answer