• 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

  • 相关阅读:
    20170620_javaweb_小结
    win7电脑关机时间长怎么办
    hadoop环境搭建之关于NAT模式静态IP的设置 ---VMware12+CentOs7
    初识bigdata时的一些技能小贴士
    mysql 免安装版 + sqlyog 安装 步骤 --- 发的有点晚
    Python开发之IDE选择
    Python解释器换源
    Anaconda安装与使用
    安装Python环境
    Python和其他编程语言
  • 原文地址:https://www.cnblogs.com/ainima/p/6331461.html
Copyright © 2020-2023  润新知