1.Unable to locate cc 等
没有安装gcc和g++编译环境,在debian下使用apt-get install gcc g++解决
2.error: Could not locate TLS/SSL package
You have not installed OpenSSL properly or you did not set your environmental variables correctly.
3.error: BDB: BerkeleyDB not available
You have not installed BerkerleyDB properly or you did not set your environmental variables correctly.
ERRORSusingconfigureonOpenLDAP
checkingforopenssl/ssl.h...no
checkingforssl.h...no
configure:error:CouldnotlocateTLS/SSLpackage
YouhavenotinstalledOpenSSLproperlyoryoudidnotsetyourenvironmentalvariablescorrectly.
Thesettingsabove(CPPFLAGS="-I/usr/local/ssl/include"LDFLAGS="-L/usr/local/ssl/lib")
assumeyouhaveinstalledopenSSLin/usr/local/ssl.
checkingfordb.h...no
configure:error:BDB:BerkeleyDBnotavailable
YouhavenotinstalledBerkerleyDBproperlyoryoudidnotsetyourenvironmentalvariablescorrectly.Thesettingsabove(CPPFLAGS="-I/usr/local/BerkeleyDB.4.1/include"LDFLAGS="-L/usr/local/BerkeleyDB.4.1/lib")
assumeyouhaveinstalledBerkeleyDBin/usr/local/BerkeleyDB.4.1.
ObviouslythiswillneedtobechangedtosuityourBerkeleyDBversion.
4.BerkeleyDB version incompatible/ mismatch
这个问题我也碰到了,按照上面的说法添加的环境变量。查了一下,有两种解决办法:
方法一:
默认安装的BerkeleyDB.4.2
在/usr/local/下生成了一个目录/usr/local/BerkeleyDB.4.2
这里包含了include和lib
需要用root进行如下操作
cp/usr/local/BerkeleyDB.4.2/lib/*/usr/lib
cp/usr/local/BerkeleyDB.4.2/include/*/usr/include
方法二:
YoujustneedtosettheLD_LIBRARY_PATHenvironmentvariabletodirectorywheretheBDBsharedlibrariesarelocated.
Typethefollowinglineontheterminalyouareworking..
exportLD_LIBRARY_PATH="
<
BerkelyDB
Directorypath
>
/build_unix/.libs"
Forex:
exportLD_LIBRARY_PATH="/home/bompada/db-4.2.52.NC/build_unix/.libs"
5.>>>>> ./scripts/test001-slapadd failed (exit 1)
make[2]: *** [bdb-yes] Error 1
make[2]: Leaving directory `/root/openldap-2.3.32/tests'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/root/openldap-2.3.32/tests'
make: *** [test] Error 2
这个问题很有意思,是在maketest的时候出现的
还在寻找解决办法
6.ldapadd: update failed: dc=domain,dc=com ldap_add: Undefined
attribute type (17)
跳过了上面那个maketest错误,直接执行makeinstall,没有报错。
修改完了配置文件,启动ldap后,添加一个entry时出错了。
还在寻找解决办法
7.error: cannot create %sourcedir /usr/src/redhat/SOURCES
其实就是目录没有创建,实际上还缺少一些用于 rpm build 的工具。
安装 rpm-build 这个包就可以了: yum install rpm-build
本文记录了在安装和配置OpenLDAP过程中遇到的各种问题及其解决方案,包括编译环境缺失、TLS/SSL和BerkeleyDB配置错误等,并提供了具体的解决步骤。
2595

被折叠的 条评论
为什么被折叠?



