Configuring PHP 5.25 with ./configure --with-mysql=/opt --without-sqlite --with-_lib=lib64 --libdir=/usr/lib64 --with-apxs2=/usr/sbin/apxs --with-zlib --with-ldap=/usr --with-gd --with-jpeg-dir=../jpeg-6b --with-png-dir=/opt --with-iconv-dir --enable-mbstring is chugs away until...

checking for ANSI C header files... (cached) yes
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... no
configure: error: Cannot find ldap libraries in /usr/lib.

I have made a symbolic link in /usr/lib - libldap.a -> /usr/lib64/libldap.a
but this does not help.

Any assistance cheerfully received.
__________________________

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gsi66's picture

PHP 5.3 --with-ldap configure fails "Cannot find ldap"

On October 13th, 2009 gsi66 (not verified) says:

I am having the problem too. Seems to be looking in /usr/lib instead of /usr/lib64. Probably some compiler directive to be added to Makefile, maybe "-L/usr/lib64". Not sure, as this dir is being used by other parts of the php configure.

paul.bohme's picture

64-bit

On March 1st, 2008 paul.bohme says:

Judging by the /usr/lib64, am going to guess you're running a 64-bit distro. Chances are good that symlinking a 32-bit library into the 64-bit path will do more harm than good. I'd start by looking for a proper 64-bit build of LDAP.

Post new comment

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Tech Tip Videos

From the Magazine

December 2009, #188

If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.


Read this issue