zoukankan      html  css  js  c++  java
  • OpenLDAP安装错误不完全列表

     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

  • 相关阅读:
    jQuery EasyUI dialog 居中最简单的办法
    Sql Server 查看存储过程最后修改时间
    MyEclipse格式化JSP代码,其中Javascript无法格式化的原因
    MyEclipse格式化JSP代码导致Java表达式<%= %>自动换行的解决办法
    重新格式化hadoop的namenode导致datanode无法启动的最简单解决办法
    端口映射
    你以为的Jquery选择器是什么样子的?
    JS&Jquery基础之窗口对象的关系总结
    JS&Jquery基础之对象和数组以及类型转换
    SQL Server关于AlwaysOn的理解
  • 原文地址:https://www.cnblogs.com/ainima/p/6331461.html
Copyright © 2011-2022 走看看