Configure Error Cannot Find Ldap Libraries In /usr/lib64
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn configure error cannot find ldap libraries in /usr/lib. centos more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges
Checking For Ldap Cyrus Sasl Support... No
Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a
Compile Php With Ldap Support
minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top PHP configure not finding LDAP header libraries up vote 4 down vote favorite
Ldap.h Not Found Ubuntu
1 I installed the LDAP development headers: apt-get install libldb-dev This added a few ldap headers: root@crunchbang:/usr/include# ls -la ldap* -rw-r--r-- 1 root root 9466 Apr 23 2013 ldap_cdefs.h -rw-r--r-- 1 root root 1814 Apr 23 2013 ldap_features.h -rw-r--r-- 1 root root 65213 Apr 23 2013 ldap.h -rw-r--r-- 1 root root 9450 Apr 23 2013 ldap_schema.h -rw-r--r-- 1 root root 3468 Apr 23 2013 ldap_utf8.h When I configure and reference the directory: ./configure --with-ldap=/usr/include I get this configure: error: sasl.h not found! error: ... checking for LDAP support... yes checking for LDAP Cyrus SASL support... no checking size of long int... 4 configure: error: Cannot find ldap libraries in /usr/include. linux php ldap share|improve this question asked Oct 3 '14 at 17:46 Shawn Welch 255211 add a comment| 4 Answers 4 active oldest votes up vote 4 down vote accepted This worked for me perfectly. Install LDAP libraries: apt-get install libldb-dev Create SO linker files: updatedb --prunepaths=/mnt cd /usr/lib if [ ! -L liblber-2.4.so.2 ]; then ln -s "$(locate liblber-2.4.so.2)" fi if [ ! -L liblber-2.4.so.2.8.3 ]; then ln -s "$(locate liblber-2.4.so.2.8.3)" fi if [ ! -L liblber.so ]; then ln -s "$(locate liblber.so)" fi if [ ! -L libldap.so ]; then ln -s "$(locate libldap.so)" fi if [ ! -L libldap_r.so ]; then ln -s "$(locate libldap_r.so)" fi Configure PHP: ./configure --with-ldap=/usr share|improve this answer answered Oct 6 '14 at 15:13 Shawn Welch 255211 Thanks for the answer. For Ubuntu Trusty, after installing libldb-dev, the following is sufficient: sudo ln -s /usr/lib/i386-linux-gnu/liblber.so /usr/lib, sudo ln -s /usr/lib/i386-linux-gnu/libldap.so /usr/lib. –Wtower Mar 21 at 11:09 Also, make sure you are not specifying lib64 libraries path as that is a sure-fire way of making sure compilation fails. This is the actual fix! --with-libdir=lib64 \ //This is what I am referring to –kaiten65 Mar 31 at 12:54 add a comment|
UTC Modified: 2009-10-19 13:42 UTC Votes:1 Avg. Score:5.0 ± 0.0 Reproduced:1 of undefined reference to symbol ber_scanf 1 (100.0%) Same Version:1 (100.0%) Same OS:1 (100.0%) From: docker php ldap graham dot simpson at hsbcib dot com Assigned: Status: Not a bug Package: Compile configure: error: mcrypt.h not found. please reinstall libmcrypt. Failure PHP Version: 5.3.0 OS: SuSE Linux 10 SP 2 x86_64 Private report: No CVE-ID: View Add Comment Developer Edit [2009-10-14 14:59 UTC] http://serverfault.com/questions/633394/php-configure-not-finding-ldap-header-libraries graham dot simpson at hsbcib dot com Description: ------------ 64bit SuSE 10.2 with openldap2-2.3, openldap2-devel-2.3 installed. Configure --with-ldap fails with: checking for LDAP support... yes checking for LDAP Cyrus SASL support... no configure: error: Cannot find ldap libraries in /usr/lib. - rpm -q -l openldap2-devel /usr/include/lber.h https://bugs.php.net/bug.php?id=49876 /usr/include/lber_types.h /usr/include/ldap.h /usr/include/ldap_cdefs.h /usr/include/ldap_features.h /usr/include/ldap_schema.h /usr/include/ldap_utf8.h /usr/include/slapi-plugin.h /usr/lib64/liblber.a /usr/lib64/liblber.so /usr/lib64/libldap.a /usr/lib64/libldap.so /usr/lib64/libldap_r.a /usr/lib64/libldap_r.so - Should be looking in /usr/lib64. Which is odd because my LD_LIBRARY_PATH contains /usr/lib64. - Altering --with-ldap to --with-ldap=/usr or /usr/lib64, then complains about not finding the ldap.h, viz: checking for LDAP support... yes checking for LDAP Cyrus SASL support... no configure: error: Cannot find ldap.h - The problem seems to be the configure script find ldap.h in /usr/include/ldap.h, so sets LDAP_LIBDIR=/usr/lib (line 52114), later it looks for /usr/lib/liblber.a instead of /usr/lib64/liblber.a. - Maybe I've got that wrong. The weird thing is I know other directives in my configure are picking up stuff from /usr/lib64. - Thanks for any help you can give. GSi Patches Add a PatchPull Requests Add a Pull RequestHistoryAllCommentsChangesGit/SVN commitsRelated reports [2009-10-14 15:05 UTC] graham dot simpson at hsbcib
--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 http://www.linuxjournal.com/content/configure-error-cannot-find-ldap-libraries-usrlib link in /usr/lib - libldap.a -> /usr/lib64/libldap.a but this does not help. Any assistance cheerfully received. ‹ What is the error in php? Network Interfaces › PHP 5.3 --with-ldap configure fails "Cannot find ldap" Submitted by gsi66 (not verified) on Tue, 10/13/2009 - 06:52. 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 not found dir is being used by other parts of the php configure. 64-bit Submitted by paul.bohme on Sat, 03/01/2008 - 11:54. 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. Subscribe Blogs Reviews HOWTOs Geek Guides Hep & Tips How to configure error cannot Get Linux Getting Help Loading Trending Topics SysAdmin DevOps Security Cloud HPC Mobile Virtualization Web Development The LatestPopularRecent Comments Senet IoT Foundry Oct 04, 2016 The Peculiar Case of Email in the Cloud Oct 03, 2016 Linux Journal October 2016 Oct 01, 2016 October 2016 Video Preview Oct 01, 2016 The Tiny Internet Project, Part I Sep 29, 2016 Bitcoin on Amazon! Sort of... Sep 28, 2016 more The Peculiar Case of Email in the Cloud Senet IoT Foundry The Tiny Internet Project, Part I Linux Journal October 2016 Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI" nginx Android Browser Security--What You Haven't Been Told SUSECON 2016: Where Technology Reigns Supreme Bitcoin on Amazon! Sort of... Free Today: September Issue of Linux Journal (Retail value: $5.99) more Already a subscriber? Click here for subscriber services. Geek Guides Pick up any e-commerce web or mobile app today, and you’ll be holding a mashup of interconnected applications and services from a variety of different providers. For instance, when you connect to Amazon’s e-commerce app, cookies, tags and pixels that are monitored by solutions like Exact Target, BazaarVoice, Bing, Shopzilla, Liveramp and Google Tag Manager track every action you take. You’re presented with special offers and coupons based on your viewing and buying patterns. If you find