openldap install
来源:互联网 发布:免费域名x 编辑:程序博客网 时间:2024/06/05 17:08
从官网下载 http://www.openldap.org/software/download/ ,这里我下了 2.4.28 版本。
解压下载的 openldap-2.4.28.tgz文件
# tar zxvf openldap-2.4.28.tgz当前目录生成一个openldap-2.4.28目录,进入该目录#cd openldap-2.4.28
编译前的配置选项,./configuer --help 可以查看有哪些编译选项
这里指定安装到/opt/openldap 目录下
#./configure --prefix=/opt/openldap --enable-modules --enable-rewrite --enable-bdb --enable-hdb --enable-ldap --enable-meta --enable-shell --enable-overlays --enable-accesslog --enable-rwm --enable-syslog #make depend#make install
安装过程中出现的错误。
1、在 ./configuer时出现错误提示:
configure: error: could not locate libtool ltdl.h
解决方法:安装 libtool-ltdl 及libtool-ltdl-devel包
如果是64位系统,通过yum方式,命令如下,
# yum install libtool-ltdl.x86_64 libtool-ltdl-devel.x86_64
2、在 ./configuer时出现错误提示:
configure: error: BDB/HDB: BerkeleyDB not available
解决方法:安装Berkeley DB软件包
从官方http://www.oracle.com下载Berkeley DB,这里下载的是 db-5.2.36.tar.gz 文件。下面安装Berkeley DB:
解压 db-5.2.36.tar.gz# tar zxvf db-5.2.36.tar.gz#cd db-5.2.36/build_unix/检查系统环境并产生编译程序所需的文件#../dist/configure# make# make install
使用Berkeley DB函数库的应用程序,还必须将lib目录添加到系统的库文件目录列表中。在/etc/ld.so.conf文件中添加一句:
/usr/local/BerkeleyDB.5.2/lib/,如:
# cat /etc/ld.so.confinclude ld.so.conf.d/*.conf/usr/local/BerkeleyDB.5.2/lib/
修改完后运行ldconfig命令来更新系统。
此时再安装openldap还是会有错误configure: error: BDB/HDB: BerkeleyDB not available,需要运行下面的命令
export CPPFLAGS="-I/usr/local/BerkeleyDB.5.2/include/"export LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.5.2/lib -R/usr/local/BerkeleyDB.5.2/lib"export LD_LIBRARY_PATH="/usr/local/BerkeleyDB.5.2/lib"
安装完成后,配置文件在 /opt/openldap/etc/openldap
# ls -l /opt/openldap/etc/openldap总用量 32-rw------- 1 root root 845 2月 8 12:04 DB_CONFIG.example-rw-r--r-- 1 root root 245 2月 8 12:04 ldap.conf-rw-r--r-- 1 root root 245 2月 8 12:04 ldap.conf.defaultdrwxr-xr-x 2 root root 4096 2月 8 12:04 schema-rw------- 1 root root 2144 2月 8 12:04 slapd.conf-rw------- 1 root root 2144 2月 8 12:04 slapd.conf.default-rw------- 1 root root 2629 2月 8 12:04 slapd.ldif-rw------- 1 root root 2629 2月 8 12:04 slapd.ldif.default
- openldap install
- openLDAP install guide
- Install Openldap details
- OpenLDAP
- OpenLDAP
- OpenLDAP
- openLDAP
- openldap
- 运行OpenLdap
- moodle + openLDAP
- openldap简介
- WebService&OpenLdap
- OpenLDAP 笔记
- openldap用法
- openldap介绍
- openldap介绍
- openldap配置
- openldap programming
- 解析oracle的rownum
- VC++6.0 自动完成程序排版功能
- 编译出来的 镜像放到模拟器里面报错
- [51daifan]站在30的门槛上
- 学习android内核 -- 内存管理相关
- openldap install
- 数据库范式
- 改善C++ 程序的150个建议学习之建议1:区分0的4种面孔
- 最大子串和
- wince 移植跨ANDIRIOD下的跨平台UI库Skia界面库
- C++ interview questions面试问题
- 在CentOS上安装Git
- 加速 lucene 的搜索速度 ImproveSearchingSpeed
- delphi 获得当前目录 与 获得主程序 目录