源码安装openldap2.3以前版本
来源:互联网 发布:猴王水果在线竞猜源码 编辑:程序博客网 时间:2024/05/16 10:30
http://icephoenix.us/linuxunix/build-openldap-2-3-x-from-sources-on-ubuntu/
It happened so that I needed to build a particular version of OpenLDAP on Ubuntu and use that instead of the one in Ubuntu’s repository. Here is a quick guide as to how it worked for me:
1. Get BDB 4.3 sources from Oracle’s site(link)
2. Compile BDB and install it:
tar –xvzf db-4.3.29.tar.gzcd db-4.3.29/build_unix./configure--prefix=/usr/local/bdb43makesudo make install
3. Get OpenLDAP source(ftp link)
4. Compile and install it:
tar xzvf openldap-2.3.35.tgzcd openldapexport CPPFLAGS="-I/usr/local/bdb43/include -D_GNU_SOURCE"export LDFLAGS="-L/usr/local/lib -L/usr/local/bdb43/lib -R/usr/local/bdb43lib"export LD_LIBRARY_PATH="/usr/local/bdb43/lib"./configure--prefix=/usr/local/openldap
If you’re installing version 2.3.x or anything before 2.4.15 you will need to manually patch OpenLDAP otherwise you’ll get this error:
../../include/ldap_pvt_thread.h:64: error: missing binary operator before token “(“
Patch file is available in this bug report
Or already patched file for OpenLDAP version 2.3.35 you can download here
If you’re installing anything >= 2.4.15, you can skip the patch.
Once patch is applied just run:
make dependmakemake test #this will take a while to runmake install
Common Errors:
configure: error: Berkeley DB version mismatch
Solution: Most likely you didn’t LDFLAGS and LD_LIBRARY_PATH as noted above
getpeereid.c:52: error: storage size of ‘peercred’ isn’t known
You need to include -D_GNU_SOURCE flag, to avoid incompatibility with glibc
../../include/ldap_pvt_thread.h:64: error: missing binary operator before token “(“
Solution: Apply patch as noted above
error while loading shared libraries: libdb-4.3.so: cannot open shared object file: No such file or directory
Solution: Add libdb-4.3 to shared libs cache:
sudo echo "/usr/local/bdb43/lib" > /etc/ld.so.conf.d/slapd.conflddconfig -v
- 源码安装openldap2.3以前版本
- suse12 源码安装openldap2.4
- gcc源码安装-版本4.7.3
- MyEclipse的安装(适用于7.0以前的版本!)
- SVN还原以前版本
- git 返回以前版本
- 以前版本Hadoop RPC
- 安装SQL Server2008和Visual Studio2008 提示:该服务器上安装了以前版本的VS2008
- Ubuntu 10.10下源码安装Erlang 5.8.3版本
- Struts2以前版本下载地址
- Git回退到以前版本
- Source tree 回滚到以前版本
- sqlexplorer插件的安装(适用于MyEclipse7.0以前的版本)
- 1_Linux环境下面_JDK的安装_并且卸载以前版本的JDK
- Openldap2.1管理员手册
- 源码安装MYSQL 5.5+版本全攻略
- 源码安装mysql 5.6.33版本
- centos源码安装mysql-5.6.16版本
- matlab 计时函数
- [整理]数据结构----位图法
- 【深入Java虚拟机】之七:Java编译与JIT编译
- Android OpenGL ES教程 第二部分 构建多边形
- 无损分区工具—Acronis Disk Director
- 源码安装openldap2.3以前版本
- windows 如何设置环境变量
- 动态sql之我见(字段名动态生成)
- andrid 样式 shape.xml 笔记
- dedecms根据字符串个数 截取字符串
- IcePHP框架中的快速后台中的通用CRUD功能框架(十) 运行效果图
- Tuning Mysql Server Parameters
- 转:DB2中实现Oracle的功能
- Spring Security教程(9)---- 自定义AccessDeniedHandler