You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Russell Yanofsky <re...@columbia.edu> on 2003/08/06 15:26:01 UTC

configure: error: Could not find Berkeley DB 4.0.14 with names: db4 db

I'm trying to build subversion from the latest sources, but can't becaues
the configure script can't find berkeley db. This is on a red hat linux box,
with berkeley db 4.0.19 and apache 2.0.47 built from their source tarballs
and installed in their default locations (/usr/local/BerkeleyDB.4.0 and
/usr/local/apache2 respectively).

I built the subversion client from the 0.26 bootstrapping tarball,
downloaded the latest trunk, and tried to built it with the following
commands:

  $ sh autogen.sh
  $ ./configure --enable-maintainer-mode                   \
              --with-apr=/usr/local/apache2                \
              --with-apr-util=/usr/local/apache2           \
              --with-berkeley-db=/usr/local/BerkeleyDB.4.0

This errors out with

-- snip --
checking for Apache module support via DSO through APXS... found at
/usr/local/apache2/bin/apxs
checking httpd version... recent enough
checking for socket in -lsocket... no
checking for Berkeley DB in /usr/local/BerkeleyDB.4.0 (as db4)... no
checking for Berkeley DB in /usr/local/BerkeleyDB.4.0 (as db)... no
configure: error: Could not find Berkeley DB 4.0.14 with names: db4 db
-- snip --

I think I'm doing everything by the book. What could be wrong? My config.log
file is attached.

- Russ

Re: configure: error: Could not find Berkeley DB 4.0.14 with names: db4 db

Posted by Russell Yanofsky <re...@columbia.edu>.
Philip Martin wrote:
> "Russell Yanofsky" <re...@columbia.edu> writes:
> 
>> checking for Berkeley DB in /usr/local/BerkeleyDB.4.0 (as db4)... no
>> checking for Berkeley DB in /usr/local/BerkeleyDB.4.0 (as db)... no
>> configure: error: Could not find Berkeley DB 4.0.14 with names: db4
>> db 
>> -- snip --
>> 
>> I think I'm doing everything by the book. What could be wrong? My
>> config.log file is attached.
> 
> configure:19876: gcc -o conftest   -g -O2 -pthread  -DNEON_ZLIB  
> -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
> -D_SVID_SOURCE -D_GNU_SOURCE -I/usr/local/BerkeleyDB.4.0/include    
> -L/usr/local/apache2/lib conftest.c  -L/usr/local/BerkeleyDB.4.0/lib
> -ldb >&5 configure:19879: $? = 0 configure:19881: ./conftest
> ./conftest: error while loading shared libraries: libdb-4.0.so:
> cannot open shared object file: No such file or directory   
> 
> The test linked, but didn't run, your system is not set up to locate
> shared libraries in /usr/local/BerkeleyDB.4.0/lib at run-time.  You
> can either modify LD_LIBRARY_PATH or use ldconfig.

That makes sense. Thanks!

- Russ


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: configure: error: Could not find Berkeley DB 4.0.14 with names: db4 db

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Wednesday, August 6, 2003 5:28 PM +0100 Philip Martin 
<ph...@codematters.co.uk> wrote:

> The test linked, but didn't run, your system is not set up to locate
> shared libraries in /usr/local/BerkeleyDB.4.0/lib at run-time.  You
> can either modify LD_LIBRARY_PATH or use ldconfig.

Or, pass LDFLAGS="-R/usr/local/BerkeleyDB.4.0/lib" to your configure 
invocation.  -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: configure: error: Could not find Berkeley DB 4.0.14 with names: db4 db

Posted by Philip Martin <ph...@codematters.co.uk>.
"Russell Yanofsky" <re...@columbia.edu> writes:

> checking for Berkeley DB in /usr/local/BerkeleyDB.4.0 (as db4)... no
> checking for Berkeley DB in /usr/local/BerkeleyDB.4.0 (as db)... no
> configure: error: Could not find Berkeley DB 4.0.14 with names: db4 db
> -- snip --
>
> I think I'm doing everything by the book. What could be wrong? My config.log
> file is attached.

configure:19876: gcc -o conftest   -g -O2 -pthread  -DNEON_ZLIB   -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I/usr/local/BerkeleyDB.4.0/include     -L/usr/local/apache2/lib conftest.c  -L/usr/local/BerkeleyDB.4.0/lib -ldb >&5
configure:19879: $? = 0
configure:19881: ./conftest
./conftest: error while loading shared libraries: libdb-4.0.so: cannot open shared object file: No such file or directory

The test linked, but didn't run, your system is not set up to locate
shared libraries in /usr/local/BerkeleyDB.4.0/lib at run-time.  You
can either modify LD_LIBRARY_PATH or use ldconfig.

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: configure: error: Could not find Berkeley DB 4.0.14 with names: db4 db

Posted by cm...@collab.net.
"Russell Yanofsky" <re...@columbia.edu> writes:

> -- snip --
> checking for Apache module support via DSO through APXS... found at
> /usr/local/apache2/bin/apxs
> checking httpd version... recent enough
> checking for socket in -lsocket... no
> checking for Berkeley DB in /usr/local/BerkeleyDB.4.0 (as db4)... no
> checking for Berkeley DB in /usr/local/BerkeleyDB.4.0 (as db)... no
> configure: error: Could not find Berkeley DB 4.0.14 with names: db4 db
> -- snip --
> 
> I think I'm doing everything by the book. What could be wrong? My config.log
> file is attached.

Perhaps:

   # echo "/usr/local/BerkeleyDB.4.0/lib" >> /etc/ld.so.conf
   # /sbin/ldconfig -v

?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org