OpenLDAP安装错误不完全列表

来源:互联网 发布:mac 桌面 窗口 关不掉 编辑:程序博客网 时间:2024/04/28 21:24

转自:http://blog.csdn.net/autofei/article/details/1881357

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.

ERRORS using configure on OpenLDAP 

checking for openssl/ssl.h... no
checking for ssl.h... no
configure: error: Could not locate TLS/SSL package

You have not installed OpenSSL properly or you did not set your environmental variables correctly.  
The settings above (CPPFLAGS="-I/usr/local/ssl/include" LDFLAGS="-L/usr/local/ssl/lib") 
assume you have installed openSSL in /usr/local/ssl. 

checking for db.h... no 
configure: error: BDB: BerkeleyDB not available 
You have not installed BerkerleyDB properly or you did not set your environmental variables correctly. The settings above (CPPFLAGS="-I/usr/local/BerkeleyDB.4.1/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.1/lib") 
assume you have installed BerkeleyDB in /usr/local/BerkeleyDB.4.1.  
Obviously this will need to be changed to suit your BerkeleyDB version. 

 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 

方法二:
You just need to set the LD_LIBRARY_PATH environment variable to directory where the BDB shared libraries are located. 

Type the following line on the terminal you are working..
export LD_LIBRARY_PATH="
<BerkelyDB Directory path>/build_unix/.libs"

For ex:
export LD_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

这个问题很有意思,是在make test的时候出现的
还在寻找解决办法

 6.ldapadd: update failed: dc=domain,dc=com ldap_add: Undefined
attribute type (17)

跳过了上面那个make test错误,直接执行make install,没有报错。
修改完了配置文件,启动ldap后,添加一个entry时出错了。
还在寻找解决办法

 7.error: cannot create %sourcedir /usr/src/redhat/SOURCES

其实就是目录没有创建,实际上还缺少一些用于 rpm build 的工具。
安装 rpm-build 这个包就可以了: yum install rpm-build


原创粉丝点击