Attempts To Configure Berkeley DB Build Fail With C Compiler Cannot Create Executables

(Doc ID 2339088.1)

Last updated on DECEMBER 13, 2017

Applies to:

Berkeley DB - Version 6.1.23 and later
Information in this document applies to any platform.

Symptoms

 Attempts to build Berkeley DB with:
../dist/configure --prefix=${BDBINSTALLDIR} --enable-cxx --enable-sql --enable-debug --enable-diagnostic --enable-posixmutexes --enable-pthread_api --enable-umrw --with-mutex=POSIX/pthreads


fail with:

checking whether the C compiler works... no
Configure: error: in '/home/oracle/Berkeley_DB/db-6.2.32/build_unix':
configure: error: C compiler cannot create executables
See 'config.log' for more details

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms