A
A
Anatoly2017-11-12 20:41:30
PHP
Anatoly, 2017-11-12 20:41:30

How to enable LDAP support in PHP 5.6.32 at compile level?

I needed ldap support, I decided to enable it at the php build stage, but with ./configure I get an error that it cannot find ldap.h
Used the key when compiling: --with-ldap
tried to specify the path to the file: --with-ldap= /usr/local/src/php5-build/php-5.6.32/ext/ldap/
did not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2017-11-13
@Tolly

I looked at the solution here: https://bugs.php.net/bug.php?id=49876
But I tweaked it for myself:
apt-get install libldap2-dev -y
./configure --with-ldap --with-libdir=lib /x86_64-linux-gnu
where lib/x86_64-linux-gnu is the path to:
find / -iname "*libldap.a*"
---------------------
/usr/lib/x86_64-linux-gnu/libldap.a

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question