Find the answer to your Linux question:
Results 1 to 5 of 5
Hi guys, First post here. I'm pretty new to linux, but have worked a bit with it. So not smart with it, but streetsmart. :P I've encountered an error the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3

    openLDAP issues


    Hi guys,

    First post here. I'm pretty new to linux, but have worked a bit with it. So not smart with it, but streetsmart. :P

    I've encountered an error the same as the one encountered in this thread. The site doesn't allow me to post links, but it's on here somewhere. Also, I have done the solution as said there, but still no luck. I do have berkeleydb installed and db.h does exist.

    A breakdown of what I do follows below:

    Code:
    ~# cd openldap-2.4.21
    ~/openldap-2.4.21# sudo ./configure --with-ldap
    //runs a load of lines then stops with this:
    checking db.h usability... no
    checking db.h presence... no
    checking for db.h... no
    configure: error: BDB/HDB: BerkeleyDB not available
    ~# CPPFLAGS="-I/usr/local/berkeleydb/include"
    ~# export CPPFLAGS
    ~# LDFLAGS="-L/usr/local/lib -L/usr/local/berkeleydb/lib -R/usr/local/berkeleydb/lib"
    ~# export LDFLAGS
    ~# LD_LIBRARY_PATH="/usr/local/berkeleydb/lib"
    ~# export LD_LIBRARY_PATH
    ~# cd openldap-2.4.21
    ~/openldap-2.4.21# sudo ./configure --with-ldap
    //runs a load of lines then stops with the same error:
    checking db.h usability... no
    checking db.h presence... no
    checking for db.h... no
    configure: error: BDB/HDB: BerkeleyDB not available
    Any ideas?

    PS: This is on ubuntu 10.04

  2. #2
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Location
    Torres Vedras, PT
    Posts
    276
    Search for "openldap berkeleydb not available"

    and you may find this
    http://www.linuxforums.org/forum/ser...rkeley-db.html
    and this
    Re: err msg: BerkeleyDB not available
    and more

    worth a try, I hope

    Just curious, why not use the ubuntu openldap package instead?
    $ sudo apt-get install slapd ldap-utils

    Regards
    Luis

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3
    Hi Luis,

    Thanks for the reply.

    The first link is the page I wanted to link to but I was denied as stated. I was denied to post a link ofcourse (sub-15 posts).

    The second link I try to follow the steps (obviously changing the paths so that it suits my paths) and I get an error that a path does not exist. But it's there.

    Any thoughts on this?

    I have a reason why I didn't use the built in ldap for linux, but don't ask me what it is now...

    Thanks.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3
    Okay, so I changed my request a bit:

    env CPPFLAGS=-I/usr/local/berkeleydb/include LDFLAGS=-L/usr/local/berkeleydb/lib LD_LIBRARY_PATH=/usr/local/berkeleydb/lib ./configure --with-ldap

    This runs a few steps past db.h and gets up to this point:

    checking for db.h... yes
    checking for Berkeley DB major version in db.h... 5
    checking for Berkeley DB minor version in db.h... 0
    checking if Berkeley DB version supported by BDB/HDB backends... yes
    checking for Berkeley DB link (default)... no

    So I am progressing, albeit VERY slowly...

  6. #5
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Location
    Torres Vedras, PT
    Posts
    276
    Quote Originally Posted by DarkRanger View Post
    The first link is the page I wanted to link to but I was denied as stated. I was denied to post a link ofcourse (sub-15 posts).
    Sorry, didn't saw that. My bad.

    I never try to install from source, and I couldn't find any real help on the INSTALL and README files, the FAQ pages or the manual. But I also didn't find the --with-ldap flag, so...

    As a shot to the air, running the configure that way is the same as using the export commands?

    As I can't really help, I can just say you may try the openLDAP mailing-list. Please say what openldap release are you using (2.4.21) and what flavour of ubuntu 10.04 (desktop, x86?)

    Best regards
    Luis
    Last edited by ptkobe; 06-18-2010 at 09:53 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •