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 openssl–devel |
On Ubuntu, when you try the same with “apt-get” install
1 2 3 4 5 6 7 8 | root@test:/server–5.7.1# apt-get install openssl-devel Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package openssl–devel root@test:/server–5.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:/server–5.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: libssl–doc zlib1g–dev The following NEW packages will be installed: libssl–dev libssl–doc zlib1g–dev 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:/server–5.7.1# dpkg -s libssl-dev Package: libssl–dev Status: install ok installed Priority: optional Section: libdevel Installed–Size: 7028 Maintainer: Ubuntu Developers <ubuntu–devel–discuss@lists.ubuntu.com> Architecture: amd64 Multi–Arch: same Source: openssl Version: 1.0.2g–1ubuntu4.6 Depends: libssl1.0.0 (= 1.0.2g–1ubuntu4.6), zlib1g–dev Recommends: libssl–doc Description: Secure Sockets Layer toolkit – development files This package is part of the OpenSSL project‘s 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. Original–Maintainer: Debian OpenSSL Team |
This package provides libraries and header files for “libssl” and “libcrypto”. PDF Bedienungsanleitungen