slapadd: error while loading shared libraries: libdb-4.6.so: cannot open shared object file: No such

Posted 丛林摄影狮

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了slapadd: error while loading shared libraries: libdb-4.6.so: cannot open shared object file: No such相关的知识,希望对你有一定的参考价值。

# tar xvf db-4.7.25.tar.gz

# cd db_4.7.25

# cd build_unix/ 

# ../dist/configure -prefix=/home/XXX/app/BerkeleyDB

# make

# make install 


2、安装openldap前准备:配置环境变量,参考openldap install文件

#export CPPFLAGS="-I/home/XXX/app/BerkeleyDB/include -D_GNU_SOURCE"

注:不设置make时报getpeereid.c:65: error: storage size of ‘peercred’ isn’t known错误

#export LDFLAGS="-L/home/XXX/app/BerkeleyDB/lib"

注:不设置configure时报configure: error: BDB/HDB: BerkeleyDB not available错误

#export LD_LIBRARY_PATH="/home/XXX/download/db-4.7.25/build_unix/.libs"

注:不设置configure时报configure: error: Berkeley DB version mismatch错误


export LDFLAGS="-L/usr/local/BerkeleyDB.4.6/lib"

export LD_LIBRARY_PATH="/usr/local/db-4.6.21/build_unix/.libs"

export CPPFLAGS="-I/usr/local/BerkeleyDB.4.6/include -D_GNU_SOURCE"



以上是关于slapadd: error while loading shared libraries: libdb-4.6.so: cannot open shared object file: No such的主要内容,如果未能解决你的问题,请参考以下文章

openssl error while loading serial number

error while loading shared libraries错误解决

error while loading shared libraries错误解决

error while loading shared libraries: libmcrypt.so.4

error while loading shared libraries: libaio.so.1

解决tpcc_load 报错 error while loading shared libraries: libmysqlclient.so.20