Jump to content

Recommended Posts

I've found a need to have an LDAP directory, and I'm trying to get PHP to support it, but I keep getting this configure error, no matter what I do.

checking for LDAP support... yes
checking for LDAP Cyrus SASL support... no
configure: error: Cannot find ldap libraries in /usr/lib.

 

From what I can tell about looking at the configure script, it's looking for a shared object file named libclntsh. However, when I try to "locate libclntsh", I can't find it either.

 

In my Googling last night and this morning, the closest thing I could find was here:

http://www.oreillynet.com/cs/user/view/cs_msg/14233

Fortunately for php (but unfortunately for me), this was a bug in the configure script that got address many versions ago (I'm trying to install 5.x.x).

 

So far, I've tried to configure 5.1.4 (which is already up and running without ldap) and 5.2.1 (the latest version as of now), and both have given me this error.

 

I'm sure it's not PHP directly. Clearly, it's looking for a file that isnt' there, but since I'm new to LDAP, I'm not sure why it's not, or what should have installed it.

 

So far, I've installed the openldap, openldap-server, openldap-client, and openldap-devel packages. Unless I'm mistaken (and I very well could be), that's all I need, but clearly something was missed. And all I can find when I Google is stuff relating to Oracle, which is definitely not my issue (no Oracle on this box).

 

Any general direction would be greatly appreciated.

Just a little update. After doing still some more research, it almost looks like that particular shared object file might be part of the Oracle installation, and PHP is expecting me to have use for LDAP only if I'm using Oracle.

 

This is all just a theory, as I've found no direct evidence of anything whatsoever, but I've been looking up PHP/LDAP/Oracle references, and I've seen a couple references to having trouble getting PHP to configure with LDAP but without Oracle. No further details; just general complaints.

 

I've tried explicitly telling the configure script that I'm not going to be using Oracle, and I've tried even commenting out the check for that file in the configure script (last-ditch effort), but no dice.

 

I really hate to post a bug to PHP, 'cause most likely it's some kind of user error. But I haven't been able to find another solution. Any help at all would be greatly appreciated.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.