Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Install Openldap di Ubuntu dengan Openldap.2.3.27 1. Install build-essential sasl2-bin libsasl2 2. i tried installing openldap 2.3.

27 today on ubuntu 8.10 (to match our asp's version in their

environment) and when i ran: Code:


./configure

i got this error: Quote: configure: error: BDB/HDB: BerkeleyDB not available to fix this in ubuntu i ran this: Code:
sudo apt-get install libdb-dev

and it chose the newest version for me ref: https://lists.ubuntu.com/archives/ub...ry/022422.html then i ran: Code:
make depend

and everything went ok, then i ran: Code:


make

and got this error: Quote: getpeereid.c: In function getpeereid: getpeereid.c:51: error: storage size of peercred isnt known make[2]: *** [getpeereid.o] Error 1 make[2]: Leaving directory `/home/tcadmin/openldap-2.3.27/libraries/liblutil' make[1]: *** [all-common] Error 1 make[1]: Leaving directory `/home/tcadmin/openldap-2.3.27/libraries' make: *** [all-common] Error 1 to fix this i had to apply a patch. all i did was open this file: openldap-2.3.27/libraries/liblutil/getpeereid.c and add the following line: Code:
#define _GNU_SOURCE

right above this line:

Code:
#include "portable.h"

so it looked like this: Code:


#define _GNU_SOURCE #include "portable.h"

then make completed without errors

You might also like