読者です 読者をやめる 読者になる 読者になる

end0tknr's kipple - 新web写経開発

http://d.hatena.ne.jp/end0tknr/ から移転します

make error - apache 2.2 with ldap

cd httpd-2.2.29
$ ./configure --prefix=/home/endo/local/apache80 \
            --with-mpm=prefork \
            --enable-proxy \
            --enable-modules=all \
            --with-ssl=/usr/local/openssl \
            --enable-rewrite=shared \
            --with-ldap \
            --enable-authnz-ldap=shared \
            --enable-ldap=shared \
            --enable-so
$ make
   :
checking for stdint.h... yes
checking for unistd.h... yes
checking for ldap support...
checking for ldap_init in -l/usr/local/openldap... no
checking for ldap_init in -l/usr/local/openldap... no
checking for ldap_init in -l/usr/local/openldap... no
checking for ldap_init in -l/usr/local/openldap... no
configure: error: could not find an LDAP library
configure failed for srclib/apr-util

So, I add "--with-ldap-include" & "--with-ldap-lib" configure option, as below.

./configure --prefix=/home/endo/local/apache80 \
            --with-mpm=prefork \
            --enable-proxy \
            --enable-modules=all \
            --with-ssl=/usr/local/openssl \
            --enable-rewrite=shared \
            --with-ldap \
            --with-ldap-include=/usr/local/openldap/include \
            --with-ldap-lib=/usr/local/openldap/lib \
            --enable-authnz-ldap=shared \
            --enable-ldap=shared \
            --enable-so