Hi, I have built and installed Berkeley DB 6.0, which is what Oracle has made most readily available. In the bitcoin directory, I ran autogen.sh, then configure. I show where Berkeley DB is. There are two configure attempts below. First I don’t specify BDB_LIBS and BDB_CPPFLAGS, and configure doesn’t find Berkeley DB, but when I do specify them in the second attempt, it still doesn’t.
Darkstar:bitcoin zack$ ./configure … checking stdio.h usability… yes checking stdio.h presence… yes checking for stdio.h… yes checking for stdlib.h… (cached) yes checking for unistd.h… (cached) yes checking for strings.h… (cached) yes checking for sys/types.h… (cached) yes checking for sys/stat.h… (cached) yes checking for MSG_NOSIGNAL… no checking for Berkeley DB C++ headers… no configure: error: libdb_cxx headers missing Darkstar:bitcoin zack$ Darkstar:bitcoin zack$ find /usr -name “libdb_cxx*” /usr/local/BerkeleyDB.6.0/lib/libdb_cxx-6.0.a /usr/local/BerkeleyDB.6.0/lib/libdb_cxx-6.0.dylib /usr/local/BerkeleyDB.6.0/lib/libdb_cxx-6.0.la /usr/local/BerkeleyDB.6.0/lib/libdb_cxx-6.dylib /usr/local/BerkeleyDB.6.0/lib/libdb_cxx.a /usr/local/BerkeleyDB.6.0/lib/libdb_cxx.dylib find: /usr/sbin/authserver: Permission denied Darkstar:bitcoin zack$ ls /usr/local/lib/pkgconfig jansson.pc libavfilter.pc libblkmaker_jansson-0.1.pc libevent_openssl.pc libswscale.pc libavcodec.pc libavformat.pc libcurl.pc libevent_pthreads.pc zlib.pc libavdevice.pc libavutil.pc libevent.pc libswresample.pc Darkstar:bitcoin zack$ Darkstar:bitcoin zack$ ls /usr/local/BerkeleyDB.6.0/include/ db.h db_cxx.h Darkstar:bitcoin zack$ ./configure BDB_LIBS=/usr/local/BerkeleyDB.6.0/lib BDB_CPPFLAGS=-I/usr/local/BerkeleyDB.6.0/include checking build system type… x86_64-apple-darwin13.0.0 checking host system type… x86_64-apple-darwin13.0.0 checking for a BSD-compatible install… /usr/bin/install -c checking whether build environment is sane… yes checking for a thread-safe mkdir -p… src/build-aux/install-sh -c -d checking for gawk… no checking for mawk… no checking for nawk… no checking for awk… awk checking whether make sets $(MAKE)… yes checking whether make supports nested variables… yes checking whether to enable maintainer-specific portions of Makefiles… yes checking whether make supports nested variables… (cached) yes checking for g++… g++ checking whether the C++ compiler works… yes checking for C++ compiler default output file name… a.out checking for suffix of executables… checking whether we are cross compiling… no checking for suffix of object files… o checking whether we are using the GNU C++ compiler… yes checking whether g++ accepts -g… yes checking for style of include used by make… GNU checking dependency style of g++… gcc3 checking for gcc… gcc checking whether we are using the GNU C compiler… yes checking whether gcc accepts -g… yes checking for gcc option to accept ISO C89… none needed checking whether gcc understands -c and -o together… yes checking dependency style of gcc… gcc3 checking how to run the C preprocessor… gcc -E checking how to run the C++ preprocessor… g++ -E checking for gcc… gcc checking whether we are using the GNU Objective C compiler… yes checking whether gcc accepts -g… yes checking dependency style of gcc… gcc3 checking for g++… g++ checking whether we are using the GNU Objective C++ compiler… yes checking whether g++ accepts -g… yes checking dependency style of g++… gcc3 checking for a sed that does not truncate output… /usr/bin/sed checking for ar… /usr/bin/ar checking for ranlib… /usr/bin/ranlib checking for strip… /usr/bin/strip checking for gcov… /usr/bin/gcov checking for lcov… no checking for java… /usr/bin/java checking for genhtml… no checking for git… /usr/bin/git checking for ccache… no checking for xgettext… no checking for hexdump… /usr/bin/hexdump checking for pkg-config… /usr/local/bin/pkg-config checking pkg-config is at least version 0.9.0… yes checking for port… no checking for brew… no checking for grep that handles long lines and -e… /usr/bin/grep checking for egrep… /usr/bin/grep -E checking for ANSI C header files… yes checking for sys/types.h… yes checking for sys/stat.h… yes checking for stdlib.h… yes checking for string.h… yes checking for memory.h… yes checking for strings.h… yes checking for inttypes.h… yes checking for stdint.h… yes checking for unistd.h… yes checking whether byte ordering is bigendian… no checking if compiler needs -Werror to reject unknown flags… yes checking whether pthreads work with -pthread… yes checking for joinable pthread attribute… PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads… -D_THREAD_SAFE checking for PTHREAD_PRIO_INHERIT… yes checking for special C compiler options needed for large files… no checking for _FILE_OFFSET_BITS value needed for large files… no checking whether the linker accepts -Wl,–large-address-aware… no checking whether C++ compiler accepts -Wstack-protector… yes checking whether C++ compiler accepts -fPIE… yes checking whether C++ preprocessor accepts -D_FORTIFY_SOURCE=2… yes checking whether the linker accepts -Wl,–dynamicbase… no checking whether the linker accepts -Wl,–nxcompat… no checking whether the linker accepts -Wl,-z,relro… no checking whether the linker accepts -Wl,-z,now… no checking whether C++ compiler accepts -fno-stack-protector… yes checking whether C++ compiler accepts -fstack-protector-all… yes checking whether the linker accepts -pie… yes checking whether the linker accepts -Wl,-dead_strip… yes checking stdio.h usability… yes checking stdio.h presence… yes checking for stdio.h… yes checking for stdlib.h… (cached) yes checking for unistd.h… (cached) yes checking for strings.h… (cached) yes checking for sys/types.h… (cached) yes checking for sys/stat.h… (cached) yes checking for MSG_NOSIGNAL… no checking for Berkeley DB C++ headers… no configure: error: libdb_cxx headers missing
I’m OK with renaming a subdirectory to db60 or whatever, but if I specify a directory, shouldn’t configure find it?