[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapadd can't find libdb



On Thu, Jun 20, 2002 at 08:15:55AM -0700, Dan Cox wrote:
> When I try -
> # /usr/local/sbin/slapadd -n 1 -l base.ldif
> I get -
> /usr/local/sbin/slapadd: fatal: libdb-4.0.so: open failed: No such file 
> or directory.
> 
> libdb-4.0.so is in /usr/local/BerkeleyDB.4.0/lib, do I need to tell 
> slapadd how to localte it? If so  how? By the way I'm trying this on 
> Solaris 8 x86. Thanks for the help.

Yes you need to set the env variable LD_LIBRARY_PATH to

/usr/local/BerkeleyDB.4.0/lib

or you need to when you compile give in the LDFLAGS in the makefile 

-R/usr/local/BerkeleyDB.4.0/lib

-- 
---
Derek T. Yarnell
University of Maryland
Computer Science Department Unix Staff
derek@cs.umd.edu