• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:


checking for openssl/ssl.h... no
configure: error: Could not locate TLS/SSL package

when i tried build binary from openldap source, i am getting "Could not locate TLS/SSL package" error.

Here is the command i am using

env CPPFLAGS="-I/openldap/db4/include" LDFLAGS="-L/openldap/db4/lib" ./configure --with-tls=openssl --prefix=/openldap/openldap-install

How do i compile openldap with TLS/SSL support?
4 Solutions
Kamran ArshadIT AssociateCommented:
Most distros include OpenSSL, your
Remove the cppflags, and ldflags I think that is what prevents the location of SSL.h which should be in /usr/include/ssl.h or add in the two
You need to download the source for openssl.
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

linuxpersonAuthor Commented:
ldap01:/openldap # ll
total 31688
drwxr-xr-x  3 saibala     1000     4096 Jan 24  2006 MigrationTools-47
-rw-r--r--  1 root       root     21284 Apr  7 05:53 MigrationTools.tar.gz
drwxrwxr-x 72 messagebus users     4096 Apr 12  2010 db-4.8.30
-rw-r--r--  1 root       root  22887305 Apr  3 17:56 db-4.8.30.tar.gz
drwxr-xr-x  6 root       root      4096 Apr 29 22:00 db4
drwxrwxr-x 10       2000  2000     4096 Sep 18  2014 openldap-2.4.40
-rw-r--r--  1 root       root   5641865 Apr  3 18:15 openldap-2.4.40.tgz
drwxr-xr-x 23 root       root      4096 Apr 29 21:53 openssl-0.9.8zf
-rw-r--r--  1 root       root   3822386 Apr 27 20:43 openssl-0.9.8zf.tar.gz

I installed the following openssl . How do i verify if it installed? For RPM i can query using rpm -qa. for open source how do i find?

drwxr-xr-x 23 root       root      4096 Apr 29 21:53 openssl-0.9.8zf
You want to install the openssl-devel package for your tartget CPU.  I am assuming a 64-bit Intel so it would be openssl-devel.x86_64.
linuxpersonAuthor Commented:
where can i get it
What Linux distribution are you running.  If you are running something based on RedHat you should be able to use yum:

yum install openssl-devel.x86_64
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now