Hello,

/sbin/ldconfig apparently skips /usr/local/lib , you have to adjust
/etc/ld.so.conf before running /sbin/ldconfig and verify by `ldconfig -
p|grep libldap-2.5` that the library is indexed.  Or /sbin/ldconfig was
just not run after the library was installed.

The meaning of the WT abbreviation gets evident from the OpenLDAP 2.5
announcement:

https://git.openldap.org/openldap/openldap/-/blob/OPENLDAP_REL_ENG_2_5/ANNOUNCEMENT#L25

Greetings
  Дилян

On Tue, 2021-09-21 at 15:44 +0200, [email protected]
wrote:
> Hello,
> 
> I'm begining to migrate to openldap 2.5.7 So I did compile from source.
> I have had one difficulty while configuring :
> while running
> ./configure '--enable-overlays' '--enable-crypt' '--with-tls' '--
> enable-backends' '--with-cyrus-sasl' '--disable-ndb' '--enable-modules'
> I did got the following error :
> 
> checking for WT... no
> configure: error: in `/home/sgoudal/openldap-2.5.7':
> configure: error: The pkg-config script could not be found or is too
> old.  Make sure it
> is in your PATH or set the PKG_CONFIG environment variable to the full
> path to pkg-config.
> 
> Alternatively, you may set the environment variables WT_CFLAGS
> and WT_LIBS to avoid the need to call pkg-config.checking for WT... no
> configure: error: in `/home/sgoudal/openldap-2.5.7':
> configure: error: The pkg-config script could not be found or is too
> old.  Make sure it
> is in your PATH or set the PKG_CONFIG environment variable to the full
> path to pkg-config.
> 
> Alternatively, you may set the environment variables WT_CFLAGS
> and WT_LIBS to avoid the need to call pkg-config.
> 
> It took me a while to figure out what was WT (of course google does not
> help). Maybe a more explicit name like... wiredtiger.. could be more
> informative ?
> 
> After correcting, compilation and installation went ok, but...
> 
> /usr/local/libexec/slapd -
> VV                                                                     
>                                                                        
>            
> /usr/local/libexec/slapd: error while loading shared libraries:
> libldap-2.5.so.0: cannot open shared object file: No such file or
> directory       
> 
> The library file is well located in /usr/local/lib adding
> LD_LIBRARY_PATH before running slapd correct the problem, (or CFLAGS=-
> L/usr/local/lib before ./configure)
> But it would be nice that it work out of the box.. or maybe I have
> missed something.
> 

Reply via email to