码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2017-07-21 00:06:22      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:share   load   cannot   xxx   err   download   strong   准备   ldap   

# 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 file or directory

标签:share   load   cannot   xxx   err   download   strong   准备   ldap   

原文地址:http://www.cnblogs.com/orziii/p/7215227.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!