WebFaction
Community site: login faq

Hello everybody.

I'm working my way though installing an openLDAP instance (v2.4.23) in my home directory using the tutorial on the old forums here: http://forum.webfaction.com/viewtopic.php?id=2509.

I've gotten the Berkeley DB compiled and installed into $HOME/webapps/ldap/lib/berkeley-db, but now when I go to configure the ldap instance for compiling I get an error stating it can't find my Berkeley DB. Below is the code I'm using to configure ldap make

$export CPPFLAGS="-I/$HOME/webapps/ldap/lib/berkeley-db/include"
$export LDFLAGS="-L/usr/local/lib -L/$HOME/webapps/ldap/lib/berkeley-db/lib -R/$HOME/webapps/ldap/lib/berkeley-db/lib"
$export LD_LIBRARY_PATH="/$HOME/webapps/ldap/lib/berkeley-db/lib"
$./configure --prefix=$HOME/webapps/ldap

Which fails with

checking for Berkeley DB major version in db.h... 5
checking for Berkeley DB minor version in db.h... 1
checking if Berkeley DB version supported by BDB/HDB backends... yes
checking for Berkeley DB link (default)... no
configure: error: BDB/HDB: BerkeleyDB not available

I have a very strong feeling that I'm dealing with an outdated tutorial which was written for a different version of openLDAP as the forum post is a little over 2 year ago.

Anyone out there have any ideas what I'm missing?

asked 26 May '11, 13:55

dgersting's gravatar image

dgersting
1123
accept rate: 0%


It appears I have figured this one out.

I had used the latest stable release of BerkeleyDB (5.1.25) while it looks like the latest openLDAP only supports the 4.8.x tree. I downgraded BerkeleyDB to 4.8.30 and openLDAP compiled without any issue, though I'm still double checking all is well though.

permanent link

answered 26 May '11, 15:45

dgersting's gravatar image

dgersting
1123
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×2
×2

question asked: 26 May '11, 13:55

question was seen: 2,912 times

last updated: 26 May '11, 15:45

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM