Building BerkeleyDB:
[sb@webdev build_unix]$ ../dist/configure --with-mutex="x86/gcc-assembly" --prefix=/usr/local --with-uniquename
[sb@webdev build_unix]$ make
[sb@webdev build_unix]$ sudo make install
... switch to Netatalk build dir:
[sb@webdev netatalk-2.0.1]$ ./configure --enable-redhat
[snip]
checking for Berkeley DB headers in /usr/local/include/db4.2... no
checking for Berkeley DB headers in /usr/local/include/db42... no
checking for Berkeley DB headers in /usr/local/include/db4.1... no
checking for Berkeley DB headers in /usr/local/include/db41... no
checking for Berkeley DB headers in /usr/local/include/db4... no
checking for Berkeley DB headers in /usr/local/include/... yes
checking /usr/local/include//db.h version >= 4.1.0... 4.2.52, yes
checking for Berkeley DB link (-ldb-4.2)... yes
checking Berkeley DB library version >= 4.1.0... no
checking for Berkeley DB headers in /usr/include/db4.2... no
checking for Berkeley DB headers in /usr/include/db42... no
checking for Berkeley DB headers in /usr/include/db4.1... no
checking for Berkeley DB headers in /usr/include/db41... no
checking for Berkeley DB headers in /usr/include/db4... no
checking for Berkeley DB headers in /usr/include/... no
Make sure you have the required Berkeley DB libraries AND headers installed.
You can download the latest version from http://www.sleepycat.com.
If you have installed BDB in a non standard location use the
--with-bdb=/path/to/bdb configure option and make sure
your linker is configured to check for libraries there.
configure: error: Berkeley DB library required but not found!
From config.log:
configure:15188: checking for Berkeley DB link (-ldb-4.2)
configure:15219: gcc -o conftest -I/usr/local/include/ -g -O2 -L/usr/local/lib conftest.c -ldb-4.2 -lnsl -ldl >&5
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
configure:15222: $? = 0
configure:15225: test -s conftest
configure:15228: $? = 0
configure:15239: result: yes
configure:15853: checking Berkeley DB library version >= 4.1.0
configure:15897: gcc -o conftest -I/usr/local/include/ -g -O2 -L/usr/local/lib conftest.c -ldb-4.2 -lnsl -ldl >&5
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
configure:15900: $? = 0
configure:15902: ./conftest
./conftest: error while loading shared libraries: libdb-4.2.so: cannot open shared object file: No such file or directory
configure:15905: $? = 127
configure: program exited with status 127
configure: failed program was:
| #line 15858 "configure"
| /* confdefs.h. */
[snip]
But:
[sb@webdev netatalk-2.0.1]$ ll /usr/local/lib/libdb-4.2.so
-rwxrwxr-x 1 sb sb 790425 Nov 7 15:52 /usr/local/lib/libdb-4.2.so
Solution
Either -
# ln -s /usr/local/lib/libdb-4.2.so /lib/libdb-4.2.so
Or -
# echo /usr/local/lib >> /etc/ld.so.conf && /sbin/ldconfig
--
simon
|