How to install openssl-devel on Ubuntu using apt-get?

How to install openssl-devel on Ubuntu using apt-get ?

When i was trying to compile “nrpe” package on an Ubuntu Server, following error was thrown during “configure”

1 2 3   checking for SSL... configure: error: Cannot find ssl libraries  

Error message is pretty verbose and says ssl library files are missing on the server. So we need to install it first before proceeding.

On Centos machines you can install the libraries using “yum” repo manager like following

1 2 3   yum install openssldevel  

On Ubuntu, when you try the same with “apt-get” install

1 2 3 4 5 6 7 8   root@test:/server5.7.1# apt-get install openssl-devel Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package openssldevel root@test:/server5.7.1#  

It is not able to find a package named “openssl-devel” . After little bit googling, i found out there is a similar package named “libssl-dev”

1 2 3 4 5 6 7 8 9 10 11 12 13 14   root@test:/server5.7.1# apt-get install libssl-dev Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libssldoc zlib1gdev The following NEW packages will be installed: libssldev libssldoc zlib1gdev 0 upgraded, 3 newly installed, 0 to remove and 30 not upgraded. Need to get 2591 kB of archives. After this operation, 10.5 MB of additional disk space will be used. Do you want to continue? [Y/n] y  

Now we will check the info for newly installed package

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23   root@test:/server5.7.1# dpkg -s libssl-dev Package: libssldev Status: install ok installed Priority: optional Section: libdevel InstalledSize: 7028 Maintainer: Ubuntu Developers <ubuntudeveldiscuss@lists.ubuntu.com> Architecture: amd64 MultiArch: same Source: openssl Version: 1.0.2g1ubuntu4.6 Depends: libssl1.0.0 (= 1.0.2g1ubuntu4.6), zlib1gdev Recommends: libssldoc Description: Secure Sockets Layer toolkit development files This package is part of the OpenSSL projects implementation of the SSL and TLS cryptographic protocols for secure communication over the Internet. . It contains development libraries, header files, and manpages for libssl and libcrypto. OriginalMaintainer: Debian OpenSSL Team  

This package provides libraries and header files for “libssl” and “libcrypto”. PDF Bedienungsanleitungen

 

Author: , 0000-00-00