- 论坛徽章:
- 0
|
安装openldap出现问题, 请高手帮忙
As I said before, please do not simply copy and use the suggested ./configure options, make sure you understand their meanings.
IF
You do not intend to use SSL/TLS, i.e. you need "--without-tls", and you need to remove all SSL references.
THEN
[st@SSL openldap-2.2.26]$ env LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib/sasl2:/usr/local/BerkeleyDB.4.3/lib" LDFLAGS="-L/usr/local/lib -L/usr/local/lib/sasl2 -L/usr/local/BerkeleyDB.4.3/lib -R/usr/local/lib -R/usr/local/lib/sasl2 -R/usr/local/BerkeleyDB.4.3/lib" CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include -I/usr/local/include/sasl" ./configure --enable-bdb --enable-ldbm --enable-ldap --enable-crypt --without-tls --with-cyrus-sasl
ELSE
Download/compile/install latest version of OpenSSL at default prefix /usr/local/ssl, and do this:
[st@SSL openldap-2.2.26]$ env LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib/sasl2:/usr/local/BerkeleyDB.4.3/lib:/usr/local/ssl/lib" LDFLAGS="-L/usr/local/lib -L/usr/local/lib/sasl2 -L/usr/local/BerkeleyDB.4.3/lib -L/usr/local/ssl/lib -R/usr/local/lib -R/usr/local/lib/sasl2 -R/usr/local/BerkeleyDB.4.3/lib -R/usr/local/ssl/lib" CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.4.3/include -I/usr/local/ssl/include -I/usr/local/include/sasl" ./configure --enable-bdb --enable-ldbm --enable-ldap --enable-crypt --with-tls --with-cyrus-sasl
ENDIF
Gary |
|