I'm trying to build Apache HTTP from source but it keeps linking against a version of BerekelyDB which I don't have installed. I have a version of BerkeleyDB installed in /usr/local that it appears to pick up and link against but it also appears to want to link against another version that is not on the box.
Here is my setup: Apache version 2.4.6 APR version: 1.4.8 APR Util version: 1.5.2
My procedure I un-Tar apr and apr-util into httpd-2.4.8/srclib
I then run these commands within a script:
export CPPFLAGS="-I/usr/local/BerkeleyDB/include" export LDFLAGS="-L/usr/local/BerkeleyDB/lib -R/usr/local/BerkeleyDB/lib" export LD_LIBRARY_PATH="/usr/local/BerkeleyDB/lib"
My configure command:
./configure --prefix=/my_path/$NAME-$VERSION \ --with-included-apr \ --with-berkeley-db=/usr/local/BerkeleyDB \ --enable-module=so \ --enable-rewrite \ --enable-ssl=shared \ --enable-autoindex \ --enable-vhost-alias \ --enable-deflate \ --disable-ldap
/usr/local/BerkeleyDB is a sym link to /usr/local/BerkeleyDB-6.0 other stuff is linked against BerkeleyDB just fine.
/user/local/BerkeleyDB/lib is also in my /etc/ld.so.conf file (ran ldconfig)
ldd httpd linux-vdso.so.1 => (0x00007fff7bed5000) libpcre.so.0 => /usr/lib64/libpcre.so.0 (0x00007fc380c88000) libaprutil-1.so.0 => /usr/lib64/libaprutil-1.so.0 (0x00007fc380a65000) libdb-6.0.so => /usr/local/BerkeleyDB/lib/libdb-6.0.so (0x00007fc380696000) libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fc380473000) libapr-1.so.0 => /usr/lib64/libapr-1.so.0 (0x00007fc380248000) libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fc380045000) librt.so.1 => /lib64/librt.so.1 (0x00007fc37fe3d000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fc37fc04000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc37f9e7000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fc37f7e3000) libc.so.6 => /lib64/libc.so.6 (0x00007fc37f46e000) libdb-4.4.so => not found libldap-2.4.so.2 => not found liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2 (0x00007fc37f261000) /lib64/ld-linux-x86-64.so.2 (0x00007fc380ea7000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fc37f048000)
running httpd & causes it to throw the expected libdb cannot be found error.
I realize libldap is shown to be missing too despite having --disable-ldap as a config parameter.
I've also examined the aclocal.m4 and configure.in files that ship with the code but those investigations lead to nowhere. Something I don't understand is how autoconf is determining that it thinks libdb-4.0 is available.
Or is it something else?
Anyone know what could be the issue here?