源代码安装openldap总结
Platform and software version:OS:CentOS5.3gcc:4.1.2BerkeleyDB:4.8.24openldap:2.4.19 1. Prerequisite softwareGCC BerkeleyDBopenssl(installed by default)2.Q&A(1)不装GCC,执行./configure时,出
Platform and software version:
OS:CentOS5.3
gcc:4.1.2
BerkeleyDB:4.8.24
openldap:2.4.19
1. Prerequisite software
GCC
BerkeleyDB
openssl(installed by default)
2.Q&A
(1)不装GCC,执行./configure时,
出现错误:
configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC.
解决方法:
install gcc
[root@localhost openldap-2.4.19]#yum -y install gcc
(2)不装BerkeleyDB,执行./configure时,
出现错误:
configure: error: BDB/HDB: BerkeleyDB not available
解决方法:
[root@localhost BerkeleyDB]# unzip db-4.8.24.zip
[root@localhost BerkeleyDB]# cd db-4.8.24
[root@localhost db-4.8.24]# cd build_unix/
[root@localhost db-4.8.24]# ../dist/configure
[root@localhost db-4.8.24]# make
[root@localhost db-4.8.24]# make install
[root@localhost openldap-2.4.19]#export CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include"
[root@localhost openldap-2.4.19]#export LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.8/lib
-R/usr/local/BerkeleyDB.4.8/lib"
[root@localhost openldap-2.4.19]#export LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.6/lib"
3.install openldap
[root@localhost openldap-2.4.19]#./configure
[root@localhost openldap-2.4.19]#make depend
[root@localhost openldap-2.4.19]#make
[root@localhost openldap-2.4.19]#make test
[root@localhost openldap-2.4.19]#make install
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
所有评论(0)