Hi,
I have been trying to install OpenLDAP 2.6 in RHEL 7.9. At my first attempt it was failed
as it requires openssl version 1.1.1 or greater. I had installed 1.1.1l as earlier version
was openssl 1.0.2k.
(installed with "./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib
shared" from the directory /usr/local/src/openssl-1.1.1l as root account
and
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
echo "export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64" >>
~/.bashrc)
Verified openssl vesrion
# openssl version
OpenSSL 1.1.1l 24 Aug 2021
# which openssl
/bin/openssl
# openssl version -d
OPENSSLDIR: "/usr/local/ssl"
Now when I tried openldap 2.6 again I am getting below error
------
checking for sys/un.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for SSL_export_keying_material_early in -lssl... no
configure: error: Could not locate TLS/SSL package
------
I am trying to run below config
vi /root/.ldap-env
--------
export
PATH=/opt/orsus/openldap-2.6/bin:/opt/orsus/openldap-2.6/sbin:/opt/orsus/openldap-2.6/libexec:$PATH
export OWNER=ldap:ldap
export CONFIG=/opt/orsus/openldap-2.6/etc/openldap/slapd.d
--------
source /root/.ldap-env
./configure --with-cyrus-sasl --with-argon2 --with-systemd --with-tls=openssl
--enable-overlays=mod --enable-backends=mod --disable-perl --disable-ndb
--enable-crypt --enable-modules --enable-dynamic --enable-syslog --enable-debug
--enable-local --enable-spasswd --disable-sql --disable-hdb --disable-bdb
--prefix=/opt/orsus/openldap-2.6.0
I have tried below but still no luck.
LDFLAGS="-L/usr/lib64/openssl -Wl,-rpath,/usr/include/openssl"
CPPFLAGS="-I/usr/include/openssl"
export CPPFLAGS
export LDFLAGS
Kindly help me.
Thank you!!
Show replies by date