Can not include OpenSSL headers files.
Anthony Gee | Nov 10, 2011 | Comments 0
Today I had question about “..why since I have OpenSSL installed and working fine with other services, I receive such message(the bellow one) when I am trying to compile something..”
1 2 3 4 5 6 7 |
[...] checking openssl/ssl.h usability... no checking openssl/ssl.h presence... no checking for openssl/ssl.h... no configure: error: !!! OpenSSL is not properly installed on your system. !!! !!! Can not include OpenSSL headers files. !!! |
The answer is because the application you are trying to compile manually requires “openssl-devel.x” package installed. It includes files for development of applications which will use OpenSSL.
So according to your OS you should use either yum, apt-get or gpg to install it.
In my example I am trying to compile on CentOS 32 bit, so I will use yum like that:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
yum install openssl-devel.i386 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.skknet.net * centosplus: centos.skknet.net * extras: centos.skknet.net * updates: centos.skknet.net Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package openssl-devel.i386 0:0.9.8e-20.el5 set to be updated --> Processing Dependency: zlib-devel for package: openssl-devel --> Processing Dependency: krb5-devel for package: openssl-devel --> Running transaction check ---> Package krb5-devel.i386 0:1.6.1-62.el5 set to be updated --> Processing Dependency: libselinux-devel for package: krb5-devel --> Processing Dependency: e2fsprogs-devel for package: krb5-devel --> Processing Dependency: keyutils-libs-devel for package: krb5-devel ---> Package zlib-devel.i386 0:1.2.3-4.el5 set to be updated --> Running transaction check ---> Package e2fsprogs-devel.i386 0:1.39-33.el5 set to be updated ---> Package keyutils-libs-devel.i386 0:1.2-1.el5 set to be updated ---> Package libselinux-devel.i386 0:1.33.4-5.7.el5 set to be updated --> Processing Dependency: libsepol-devel >= 1.15.2-1 for package: libselinux-devel --> Running transaction check ---> Package libsepol-devel.i386 0:1.15.2-3.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================== Installing: openssl-devel i386 0.9.8e-20.el5 base 1.9 M Installing for dependencies: e2fsprogs-devel i386 1.39-33.el5 base 573 k keyutils-libs-devel i386 1.2-1.el5 base 27 k krb5-devel i386 1.6.1-62.el5 base 1.9 M libselinux-devel i386 1.33.4-5.7.el5 base 144 k libsepol-devel i386 1.15.2-3.el5 base 187 k zlib-devel i386 1.2.3-4.el5 base 101 k Transaction Summary ===================================================================================================================================================== Install 7 Package(s) Upgrade 0 Package(s) Total download size: 4.7 M Is this ok [y/N]: y Downloading Packages: (1/7): keyutils-libs-devel-1.2-1.el5.i386.rpm | 27 kB 00:00 (2/7): zlib-devel-1.2.3-4.el5.i386.rpm | 101 kB 00:00 (3/7): libselinux-devel-1.33.4-5.7.el5.i386.rpm | 144 kB 00:00 (4/7): libsepol-devel-1.15.2-3.el5.i386.rpm | 187 kB 00:00 (5/7): e2fsprogs-devel-1.39-33.el5.i386.rpm | 573 kB 00:00 (6/7): krb5-devel-1.6.1-62.el5.i386.rpm | 1.9 MB 00:00 (7/7): openssl-devel-0.9.8e-20.el5.i386.rpm | 1.9 MB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------------- Total 3.5 MB/s | 4.7 MB 00:01 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : keyutils-libs-devel 1/7 Installing : e2fsprogs-devel 2/7 Installing : zlib-devel 3/7 Installing : libsepol-devel 4/7 Installing : libselinux-devel 5/7 Installing : krb5-devel 6/7 Installing : openssl-devel 7/7 Installed: openssl-devel.i386 0:0.9.8e-20.el5 Dependency Installed: e2fsprogs-devel.i386 0:1.39-33.el5 keyutils-libs-devel.i386 0:1.2-1.el5 krb5-devel.i386 0:1.6.1-62.el5 libselinux-devel.i386 0:1.33.4-5.7.el5 libsepol-devel.i386 0:1.15.2-3.el5 zlib-devel.i386 0:1.2.3-4.el5 Complete! |
So the next time when I try to compile my application, Openssl headers files will be there:
1 2 3 4 5 6 7 8 9 10 |
[...] checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/md5.h usability... yes checking openssl/md5.h presence... yes checking for openssl/md5.h... yes checking openssl/err.h usability... yes checking openssl/err.h presence... yes [...] |
Tags
- openssl is not properly installed on your system (62)
- can not include openssl headers files (31)
- inurl: \plesk-stat/webstat/\ (24)
- !!! OpenSSL is not properly installed on your system !!! (15)
- OpenSSL is not properly installed on your system !!! !!! Can not include OpenSSL headers files (12)
- OpenSSL headers (11)
- openssl is not properly installed on your system cannot include openssl headers files (10)
- CannotincludeOpenSSLheadersfiles :FreeTutorials (9)
- error: zlib for php is not properly installed (2)
- centos openssl include (1)
- cannot include openssl heders files (1)
- cannot include openssl headers files (1)
- !!! Can not include OpenSSL headers files !!! (1)
Filed Under: Linux • Server Management • SSH • System • Web servers
About the Author: Anthony G. is an IT specialist with more than 9 years of solid working experience in the Web Hosting industry. Currently works as server support administrator, involved in consultative discussions about Web Hosting and server administration. One of the first writers in the Onlinehowto.net website, now writing for Free Tutorials community - he is publishing tutorials and articles for the wide public, as well as specific technical solutions.