[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

db insanity.

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-09-07 17:47:31 CEST

OK Kevin, maybe you can help me through the woods here. I can't tell
if my problems are FreeBSD-specific. Maybe so, maybe not.

Case 1: my personal FreeBSD devel box.

  I can successfully build statically (--disable-shared), and
  ./configure correctly detects db3.3 installed as db/ in the tree.

  I've never tried building shared, because I don't want the .so's
  lying around my system. (Plus, static binaries are easier to debug.)

Case 2: the DAV testing box, also FreeBSD.

  I install db3.3 into /usr/local/BerkeleyDB.3.3/, just as this
  package wants to do.

  I run './configure --with-apxs=...', and it tells me:

checking for built-in Berkeley DB... no
checking for Berkeley DB in the standard places... no
checking for Berkeley DB in /usr/local/include/db3 and /usr/local/lib... no
checking for Berkeley DB in /usr/local... no
checking for Berkeley DB in /usr/local/BerkeleyDB.3.3... no
checking for Berkeley DB in /usr/include/db3 and /usr/lib... no

  So I throw my hands in the air, and create a db/ subdir. Now
  ./configure is able to detect the built-in db, and I build shared.
  After doing a `make install`, I try to start httpd... but I get an
  error saying that mod_dav_svn, which depends on libsvn_fs, is unable
  to find the db library!

bash-2.03$ /usr/local/apache2/bin/apachectl start
Syntax error on line 177 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libmod_dav_svn.so into server: Shared object "libdb-3.3.so" not found
/usr/local/apache2/bin/apachectl start: httpd could not be started
bash-2.03$ ls /usr/local/BerkeleyDB.3.3/lib/
libdb-3.3.a libdb-3.3.so libdb.a
libdb-3.3.la libdb-3.so libdb.so

Case 3: svn.collab.net, our actual Linux production server.

  db3.3 is installed in /usr/local/BerkeleyDB.3.3/, exactly as the
  listing looks above.
  
  I run './configure --with-apxs=...' :

checking for Berkeley DB in /usr/local/BerkeleyDB.3.3... yes

  And everything works fine after building shared and `make install`.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:40 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.