You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Gavin Kistner <ga...@refinery.com> on 2004/03/08 16:16:32 UTC

SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Summary:
========================================================
I'm trying to install SVN server with Apache2, and I can't get apache 
built with Berkeley4.2. I've read the FAQ, applied the patch, and 
attempted numerous ways to get it to work. No glory. Help? Please?


SLIGHTLY MORE INFORMATION
========================================================
System Details:
350MHz PII, 128MB RAM
Slackware 9.0
BerkeleyDB 4.2.52
HTTPd 2.0.48

I built and installed bdb correctly. (I assume...I followed the 
instructions, received no errors, and now see a full 
/usr/local/BerkeleyDB.4.2/ directory.)

I've tried my apache2 ./configure line before and after the patch 
(http://subversion.tigris.org/db42-support-patch.txt), with only 
--with-dbm=42, only --with-berkeley-db=/usr/local/BerkeleyDB.4.2, and 
with both.

In all 6 cases it fails. A summary of the cases follows, and after that 
is more verbose output with the actual errors (and with probably 
irrelevant content snipped).



ERRORS OVERVIEW
========================================================
# PRE-PATCH, WITH BOTH CONFIGURE PARAMS
APR-util configure fails

# PRE-PATCH, WITH DBM PARAM ONLY
APR-util configure fails

# PRE-PATCH, WITH PATH PARAM ONLY
Full configure completes without error. (APR-util configure starts 
looking for 4.1, not 4.2)
'make' and 'make install' complete without error.
But checking the libdb version, it's using v3.


# POST-PATCH, WITH BOTH CONFIGURE PARAMS
APR-util configure fails

# POST-PATCH, WITH DBM PARAM ONLY
Full configure succeeds.
'make' fails ("libaprutil-0.so: undefined reference to `db_open'")

# POST-PATCH, WITH PATH PARAM ONLY
Full configure completes without error. (APR-util configure starts 
looking for 4.1, not 4.2)
'make' and 'make install' complete without error.
But checking the libdb version, it's using v3.


ERRORS DETAIL
========================================================

root@Frump:/usr/local/src# rm -r httpd-2.0.48
root@Frump:/usr/local/src# xzf _archive/httpd-2.0.48.tar.gz; cd 
httpd-2.0.48/
root@Frump:/usr/local/src/httpd-2.0.48# grep 4.2 
srclib/apr-util/configure
(no output...'4.2' doesn't exist in the pre-patch configure file)


# PRE-PATCH, WITH BOTH CONFIGURE PARAMS
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared 
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared 
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode 
--with-dbm=db42 --with-berkeley-db=/usr/local/BerkeleyDB.4.2
    [...snip...]
Configuring Apache Portable Runtime Utility library...

checking for APR-util... reconfig
configuring package in srclib/apr-util now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for working mkdir -p... yes
APR-util Version: 0.9.5
checking for chosen layout... apr-util
Applying apr-util hints file rules for i686-pc-linux-gnu
checking for APR... yes
   setting CC to "gcc"
   setting CPP to "gcc -E"
   setting CFLAGS to " -g -O2 -Wall -Wmissing-prototypes 
-Wstrict-prototypes -Wmissing-declarations -pthread"
   setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE"
checking for gcc... gcc
    [...snip...]
checking for gdbm.h... yes
checking for gdbm_open in -lgdbm... yes
configure: error: Berkeley DB not found.
configure failed for srclib/apr-util


# PRE-PATCH, WITH DBM PARAM ONLY
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared 
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared 
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode 
--with-dbm=db42
    [...snip...]
configure: error: --with-dbm= is an unknown DBM type.
         Use one of: sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4
configure failed for srclib/apr-util


# PRE-PATCH, WITH PATH PARAM ONLY
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared 
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared 
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode 
--with-berkeley-db=/usr/local/BerkeleyDB.4.2
    [...snip...] (no errors, but starts looking for 4.1, not 4.2)

root@Frump:/usr/local/src/httpd-2.0.48# make
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# make install
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# ldd 
/usr/local/apache2/bin/httpd | fgrep libdb
         libdb.so.3 => /lib/libdb.so.3 (0x40048000)



# ....PATCHING....
root@Frump:/usr/local/src/httpd-2.0.48# mv ../db42-support-patch.txt .
root@Frump:/usr/local/src/httpd-2.0.48# patch -p0 
<db42-support-patch.txt
patching file srclib/apr-util/configure
root@Frump:/usr/local/src/httpd-2.0.48# grep 4.2 
srclib/apr-util/configure
     places="std /usr/local/BerkeleyDB.4.2"
   bdb_default_search_lib_names="db-4.2 db4 db"


# POST-PATCH, WITH BOTH CONFIGURE PARAMS
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared 
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared 
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode 
--with-dbm=db42 --with-berkeley-db=/usr/local/BerkeleyDB.4.2
    [...snip...]
configure: error: Berkeley db4 not found
configure failed for srclib/apr-util


# POST-PATCH, WITH DBM PARAM ONLY
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared 
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared 
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode 
--with-dbm=db42
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# make
    [...snip...]
/usr/local/src/httpd-2.0.48/srclib/apr-util/.libs/libaprutil-0.so: 
undefined reference to `db_open'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/usr/local/src/httpd-2.0.48'
make: *** [all-recursive] Error 1



# POST-PATCH, WITH PATH PARAM ONLY
root@Frump:/usr/local/src/httpd-2.0.48# ./configure --enable-dav=shared 
--enable-dav_fs=shared --enable-expires=shared --enable-deflate=shared 
--enable-rewrite=shared --disable-userdir --enable-maintainer-mode 
--with-berkeley-db=/usr/local/BerkeleyDB.4.2
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# make
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# make install
    [...snip...] (completes successfully)

root@Frump:/usr/local/src/httpd-2.0.48# ldd 
/usr/local/apache2/bin/httpd | fgrep libdb
         libdb.so.3 => /lib/libdb.so.3 (0x40048000)



--
(-, /\ \/ / /\/


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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Seth Falcon <sf...@fhcrc.org>.
Did you remember to add /usr/local/BerkeleyDB.4.2/lib to /etc/ld.so.conf
and run ldconfig?  




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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Lars Immisch <la...@ibp.de>.
> Summary:
> ========================================================
> I'm trying to install SVN server with Apache2, and I can't get apache 
> built with Berkeley4.2. I've read the FAQ, applied the patch, and 
> attempted numerous ways to get it to work. No glory. Help? Please?

<large snippage>

If all else fails: read config.log, determine which tests relating to 
bdb fail, run them manually and check why.

I had to revert to this method only to discover that a test generated by 
configure couldn't execute because it relied on a .so in 
/usr/local/BerkeleyDB.4.2 (which was not in my ld.so.conf).

Hence configure assumed that there was no Berkeley DB installed at all 
(although I have the Debian woody stock Berkeley version (around 2), 
another for cyrus (3.3) plus 4.2 specifically for svn)

- Lars




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

Re: SVN install on Fedora Core?

Posted by "Robert P. J. Day" <rp...@mindspring.com>.
On Mon, 22 Mar 2004, Mark Jaffe wrote:

> Is there any clear and ordered process to install from rpm? I am 
> running Fedora Core 1 and started from rpm -i 
> subversion-1.0.1-1.fc1.i386.rpm and got the following result:
> 
> error: Failed dependencies:
>          apr >= 0.9.5 is needed by subversion-1.0.1-1
>          apr-util >= 0.9.5 is needed by subversion-1.0.1-1
>          db42 >= 4.2.52 is needed by subversion-1.0.1-1
>          libdb-4.2.so is needed by subversion-1.0.1-1
>          libneon.so.24 is needed by subversion-1.0.1-1
>          neon >= 0.24.4 is needed by subversion-1.0.1-1
> 
> So then I downloaded the seemingly obvious rpms, and got hopelessly 
> entangled in cascading dependencies. When will it ever end?

don't use "rpm", use "yum".  see my previous post regarding what looks
to be an acceptable yum repo for subversion 1.0.1 for FC1.

rday

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

Re: SVN install on Fedora Core?

Posted by Jeff Macdonald <je...@virtualbuilder.com>.
On Mon, 2004-03-22 at 18:20, Mark Jaffe wrote:
> Is there any clear and ordered process to install from rpm? I am 
> running Fedora Core 1 and started from rpm -i 
> subversion-1.0.1-1.fc1.i386.rpm and got the following result:
> 

Where did you get that RPM?

> error: Failed dependencies:
>          apr >= 0.9.5 is needed by subversion-1.0.1-1
>          apr-util >= 0.9.5 is needed by subversion-1.0.1-1
>          db42 >= 4.2.52 is needed by subversion-1.0.1-1
>          libdb-4.2.so is needed by subversion-1.0.1-1
>          libneon.so.24 is needed by subversion-1.0.1-1
>          neon >= 0.24.4 is needed by subversion-1.0.1-1
> 
> So then I downloaded the seemingly obvious rpms, and got hopelessly 
> entangled in cascading dependencies. When will it ever end?
> 

I added the following line to /etc/sysconfig/rhn/sources (all one line):

yum fedora-development
http://mirror.hiwaay.net/redhat/fedora/linux/core/development

and did an:
# up2date --nosig subversion

up2date took care of all the dependencies. Please note that adding the
line will make the rhn icon pulse afterwords with hundreds of updates.
I'm ignoring it for now. I'd imagine I could just remove the line from
sources....



SVN install on Fedora Core?

Posted by Mark Jaffe <ma...@osafoundation.org>.
Is there any clear and ordered process to install from rpm? I am 
running Fedora Core 1 and started from rpm -i 
subversion-1.0.1-1.fc1.i386.rpm and got the following result:

error: Failed dependencies:
         apr >= 0.9.5 is needed by subversion-1.0.1-1
         apr-util >= 0.9.5 is needed by subversion-1.0.1-1
         db42 >= 4.2.52 is needed by subversion-1.0.1-1
         libdb-4.2.so is needed by subversion-1.0.1-1
         libneon.so.24 is needed by subversion-1.0.1-1
         neon >= 0.24.4 is needed by subversion-1.0.1-1

So then I downloaded the seemingly obvious rpms, and got hopelessly 
entangled in cascading dependencies. When will it ever end?

Mark
========================================================
Mark Jaffe                                  | (415) 946-3028 (work)
Release Engineer                    | (408) 807-2093 (cell)
OSAF                                           | (415) 946-3001 (FAX)
markie@osafoundation.org    | http://www.osafoundation.org/


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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Gavin Kistner <ga...@refinery.com>.
Yay, I finally got SVN built as well as httpd. (If you're reading this 
page separate from the thread, see below for instructions on what it 
took for me personally to get httpd2 built.)

I'm not sure if this was all necessary, but the following is what I did 
in order to get SVN built against a new install of bdb4.2:

cd /lib/
mv libdb* ~/olddblibs/     #probably unnecessary; I wanted to clear out 
db1-db3
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.a
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.la
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.so
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb.a
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb.so
ldconfig

cd /usr/local/src/
rm -r /subversion-1.0.0/
tar xzf _archive/subversion-1.0.0.tar.gz
cd subversion-1.0.0/apr-util/
curl -O http://subversion.tigris.org/db42-support-patch.txt
patch configure db42-support-patch.txt
cd ..

./configure --enable-maintainer-mode 
--with-berkeley-db=/usr/local/BerkeleyDB.4.2 --with-dbm=db42

make && make install

ldd /usr/local/bin/svn | fgrep libdb
#        libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so 
(0x40108000)


I still haven't configured things to ensure it's working, but at least 
I have now gotten both to *compile* at least :)



On Mar 9, 2004, at 11:52 AM, Gavin Kistner wrote:
> I was having trouble building apache2 (httpd2) for use with subversion 
> (SVN). Specifically, my linux/slackware 9.1 install didn't have 
> Berkeley DB v4.2 installed. Compiling apache was using BDB3, which was 
> not acceptable for subversion. After downloading and 
> building/installing bdb4.2, all manner of methods that were supposed 
> to work to specifically specify the path failed to work (including the 
> FAQ entry 
> http://subversion.tigris.org/project_faq.html#linux-bdb42-build and 
> its associated patch). Not previously mentioned, this also included 
> several ways of explicitly specifying LD_LIBRARY_PATH.
>
> The following sequence worked for me:
>
> cd /usr/local/src/
> rm -r httpd-2.0.48/
> tar xzf _archive/httpd-2.0.48.tar.gz
> cd ../httpd-2.0.48/
>
> curl -O http://subversion.tigris.org/db42-support-patch.txt
> patch -p0 <db42-support-patch.txt
>
> echo '/usr/local/BerkeleyDB.4.2/lib/' >> /etc/ld.so.conf
> ldconfig
>
> ./configure --enable-dav=shared --enable-dav_fs=shared 
> --enable-expires=shared --enable-deflate=shared 
> --enable-rewrite=shared --disable-userdir --enable-maintainer-mode 
> --with-dbm=db42 --with-berkeley-db
>
> make; make install
>
> ldd /usr/local/apache2/bin/httpd | fgrep libdb
> #        libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so 
> (0x40045000)

--
(-, /\ \/ / /\/


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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Gavin Kistner <ga...@refinery.com>.
On Mar 9, 2004, at 11:52 AM, Gavin Kistner wrote:
> On Mar 9, 2004, at 11:31 AM, John Peacock wrote:
>> Please let us know if this addition fixes your problems.
>
> It did! Yay!

I'd also like to thank 'sussman' and 'dionisos' for their patient help 
and expertise on #svn over IRC...without them and their help, I would 
have given up long ago :)


--
(-, /\ \/ / /\/


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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Gavin Kistner <ga...@refinery.com>.
On Mar 9, 2004, at 12:35 PM, John Peacock wrote:
> For building Subversion itself, this is best:
>
> 	./configure --with-apxs=/usr/local/apache2/bin/apxs
>
> (or wherever you installed apache).  This will Do the Right Thing(TM) 
> for you...

While I had hoped that it would, it was not so. Not below how it starts 
out searching for 4.1, not 4.2. This is with an unpatched 
svn/apr-util/configure script. I'm now testing flavors using patched 
and unpatched and various configure directives. (sigh)

root@Frump:/usr/local/src/subversion-1.0.0# ldd 
/usr/local/apache2/bin/httpd | fgrep libdb
         libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so 
(0x40045000)


root@Frump:/usr/local/src/subversion-1.0.0# ./configure 
--with-apxs=/usr/local/apache2/bin/apxs | egrep 'bd|db|Berkeley'

/usr/bin/env: python: No such file or directory
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for h_errno in netdb.h... yes
checking gdbm.h usability... yes
checking gdbm.h presence... yes
checking for gdbm.h... yes
checking for gdbm_open in -lgdbm... yes
checking checking for Berkeley DB 4.1 in the standard places...
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking checking for Berkeley DB 4.1 in /usr/local/BerkeleyDB.4.1...
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking checking for Berkeley DB 4.0 in the standard places...
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking checking for Berkeley DB 4.0 in /usr/local...
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking checking for Berkeley DB 4.0 in /usr/local/BerkeleyDB.4.0...
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking checking for Berkeley DB 3 in the standard places...
checking db3/db.h usability... no
checking db3/db.h presence... no
checking for db3/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db3/db.h usability... no
checking db3/db.h presence... no
checking for db3/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking checking for Berkeley DB 2 in the standard places...
checking db2/db.h usability... no
checking db2/db.h presence... no
checking for db2/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db2/db.h usability... no
checking db2/db.h presence... no
checking for db2/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking checking for Berkeley DB 1.0.0 in the standard places...
checking db1/db.h usability... no
checking db1/db.h presence... no
checking for db1/db.h... no
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking checking for Berkeley DB 1 in the standard places...
checking db_185.h usability... no
checking db_185.h presence... no
checking for db_185.h... no
checking for Berkeley DB... not found
checking for default DBM... sdbm (default)
   setting APRUTIL_EXPORT_LIBS to "-lgdbm"
   setting APRUTIL_LIBS to "-lgdbm"
config.status: creating include/private/apu_select_dbm.h
config.status: creating dbm/Makefile
config.status: creating dbm/sdbm/Makefile
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
configure: WARNING: we have configured for a client-only build


The Subversion filesystem library, part of the server, requires
Berkeley DB version 4.0.14 or newer, which you don't seem to have
installed and linked to APR-UTIL.  We have created makefiles which
will build the Subversion client code only, and skip the server.  You
can find latest version of Berkeley DB at http://www.sleepycat.com/.
You can find the latest version of Berkeley DB here:
   http://www.sleepycat.com/download/index.shtml


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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by John Peacock <jp...@rowman.com>.
Gavin Kistner wrote:

> Argh...belay that edit.
> 
> While that got httpd2 compiled/working with bdb4.2, (amazingly I still 
> can't get subversion to build with it yet.

For building Subversion itself, this is best:

	./configure --with-apxs=/usr/local/apache2/bin/apxs

(or wherever you installed apache).  This will Do the Right Thing(TM) for you...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Gavin Kistner <ga...@refinery.com>.
On Mar 9, 2004, at 11:56 AM, John Peacock wrote:
Gavin Kistner wrote:
>> On Mar 9, 2004, at 11:31 AM, John Peacock wrote:
>>> Please let us know if this addition fixes your problems.
>> It did! Yay!
>
> Excellent!  I will prepare an additional paragraph to the FAQ (if 
> sussman doesn't beat me to it).

Argh...belay that edit.

While that got httpd2 compiled/working with bdb4.2, (amazingly I still 
can't get subversion to build with it yet.

Fighting, trying permutations now.


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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by John Peacock <jp...@rowman.com>.
Gavin Kistner wrote:

> On Mar 9, 2004, at 11:31 AM, John Peacock wrote:
> 
>> Please let us know if this addition fixes your problems.
> 
> 
> It did! Yay!

Excellent!  I will prepare an additional paragraph to the FAQ (if sussman 
doesn't beat me to it).

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Gavin Kistner <ga...@refinery.com>.
On Mar 9, 2004, at 11:31 AM, John Peacock wrote:
> Please let us know if this addition fixes your problems.

It did! Yay!

To summarize (for google/logs):
I was having trouble building apache2 (httpd2) for use with subversion 
(SVN). Specifically, my linux/slackware 9.1 install didn't have 
Berkeley DB v4.2 installed. Compiling apache was using BDB3, which was 
not acceptable for subversion. After downloading and 
building/installing bdb4.2, all manner of methods that were supposed to 
work to specifically specify the path failed to work (including the FAQ 
entry http://subversion.tigris.org/project_faq.html#linux-bdb42-build 
and its associated patch). Not previously mentioned, this also included 
several ways of explicitly specifying LD_LIBRARY_PATH.

The following sequence worked for me:

cd /usr/local/src/
rm -r httpd-2.0.48/
tar xzf _archive/httpd-2.0.48.tar.gz
cd ../httpd-2.0.48/

curl -O http://subversion.tigris.org/db42-support-patch.txt
patch -p0 <db42-support-patch.txt

echo '/usr/local/BerkeleyDB.4.2/lib/' >> /etc/ld.so.conf
ldconfig

./configure --enable-dav=shared --enable-dav_fs=shared 
--enable-expires=shared --enable-deflate=shared --enable-rewrite=shared 
--disable-userdir --enable-maintainer-mode --with-dbm=db42 
--with-berkeley-db

make; make install

ldd /usr/local/apache2/bin/httpd | fgrep libdb
   => libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so 
(0x40045000)


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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by John Peacock <jp...@rowman.com>.
Gavin Kistner wrote:
> (This isn't mentioned under the FAQ entry about BDB, but only under the 
> entry:
> 'I just built the distribution binary, and when I try to check out 
> Subversion, I get an error about an "Unrecognized URL scheme." What's up 
> with that?')

That's funny, I thought it did exist in the BDB 4.2 FAQ entry!  Hmmm, it was in 
my proposed patch to the FAQ:

+<li>Build BerkeleyDB 4.2.x using whatever options are appropriate for your
+system; the default settings work fine and will install BerkeleyDB into
+<tt>/usr/local/BerkeleyDB.4.2</tt>.</li>
+
+<li>If your O/S requires it, add /usr/local/BerkeleyDB.4.2/lib to the
+<tt>/etc/ld.so.conf</tt> file and run <tt>ldconfig</tt>; this will make the
+BDB libraries available to the run-time linker.</li>

but it must have slipped out when the changes to the FAQ were completed (based 
loosely on my patch).

Please let us know if this addition fixes your problems.

John
-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Gavin Kistner <ga...@refinery.com>.
On Mar 9, 2004, at 10:30 AM, John Peacock wrote:
> The most important part of the FAQ is the instructions to add the
> /path/to/Berkeleydb/lib directory to /etc/ld.so.conf and run ldconfig. 
>  This is
> the piece that configures the system so that the linker can correctly 
> find the
> shared library, both for testing and for later use in Apache and 
> Subversion.

Ooh, I'll try this.

(This isn't mentioned under the FAQ entry about BDB, but only under the 
entry:
'I just built the distribution binary, and when I try to check out 
Subversion, I get an error about an "Unrecognized URL scheme." What's 
up with that?')

...or is that only applicable to a binary install, and not a 
source-code build?

--
(-, /\ \/ / /\/


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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by John Peacock <jp...@rowman.com>.
Robert Guthrie wrote:

> Have you tried just --with-dbm=db42 and not including the 
> "--with-berkeley-db" argument at all?
> 
> I'm having a similar issue and I have yet to resolve it, but my big 
> problem is that I HAVE to use the --wirth-berkeley-db because the 
> standard /usr/local location for it is off limits to me.
> 
> I have an unfounded suspicion that the config file doesn't handle the 
> --with-berkeley-db parameter properly, but the defaults work without it. 
>  If you succeed without the parameter at all, that will lend some 
> credence to my theory, and I'll have more incentive to delve into the 
> world of configure scripting.

As I understand it:

--with-berkeley-db=/path/to/BerkeleyDB

simply tells the configure file where to start looking for files (both include
and lib) in order to use BDB;

--with-dbm=db42

tells configure to _only_ use the specific library file libdb-4.2 when linking
(and I have never, in practice, had to use this flag).

There are two pieces to the configure run:

1) Can we find the proper include headers?
2) Can we compile a short test program (i.e. can we link to the libraries)?

The most important part of the FAQ is the instructions to add the
/path/to/Berkeleydb/lib directory to /etc/ld.so.conf and run ldconfig.  This is
the piece that configures the system so that the linker can correctly find the
shared library, both for testing and for later use in Apache and Subversion.

Once you correctly set up the libraries in ld.so.conf, you should be able to
build Apache using

	./configure --with-berkeley-db=/path/to/BerkeleyDB

no matter how many other versions of BDB you have already installed (I believe
my home machine has BDB1.x, BDB2.x, BDB4.0, BDB4.1, and BDB4.2 all on the system).

HTH

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748



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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by John Peacock <jp...@rowman.com>.
Robert Guthrie wrote:

> Have you tried just --with-dbm=db42 and not including the 
> "--with-berkeley-db" argument at all?
> 
> I'm having a similar issue and I have yet to resolve it, but my big 
> problem is that I HAVE to use the --wirth-berkeley-db because the 
> standard /usr/local location for it is off limits to me.
> 
> I have an unfounded suspicion that the config file doesn't handle the 
> --with-berkeley-db parameter properly, but the defaults work without it. 
>  If you succeed without the parameter at all, that will lend some 
> credence to my theory, and I'll have more incentive to delve into the 
> world of configure scripting.

As I understand it:

--with-berkeley-db=/path/to/BerkeleyDB

simply tells the configure file where to start looking for files (both include 
and lib) in order to use BDB;

--with-dbm=db42

tells configure to _only_ use the specific library file libdb-4.2 when linking 
(and I have never, in practice, had to use this flag).

There are two pieces to the configure run:

1) Can we find the proper include headers?
2) Can we compile a short test program (i.e. can we link to the libraries)?

The most important part of the FAQ is the instructions to add the 
/path/to/Berkeleydb/lib directory to /etc/ld.so.conf and run ldconfig.  This is 
the piece that configures the system so that the linker can correctly find the 
shared library, both for testing and for later use in Apache and Subversion.

Once you correctly set up the libraries in ld.so.conf, you should be able to 
build Apache using

	./configure --with-berkeley-db=/path/to/BerkeleyDB

no matter how many other versions of BDB you have already installed (I believe 
my home machine has BDB1.x, BDB2.x, BDB4.0, BDB4.1, and BDB4.2 all on the system).

HTH

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Gavin Kistner <ga...@refinery.com>.
On Mar 9, 2004, at 8:31 AM, Robert Guthrie wrote:
> Have you tried just --with-dbm=db42 and not including the 
> "--with-berkeley-db" argument at all?

I have ... see the original posting's six variations :)

Still no glory.


--
(-, /\ \/ / /\/


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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Robert Guthrie <rg...@pobox.com>.
Have you tried just --with-dbm=db42 and not including the 
"--with-berkeley-db" argument at all?

I'm having a similar issue and I have yet to resolve it, but my big 
problem is that I HAVE to use the --wirth-berkeley-db because the 
standard /usr/local location for it is off limits to me.

I have an unfounded suspicion that the config file doesn't handle the 
--with-berkeley-db parameter properly, but the defaults work without it. 
  If you succeed without the parameter at all, that will lend some 
credence to my theory, and I'll have more incentive to delve into the 
world of configure scripting.

Gavin Kistner wrote:
> On Mar 8, 2004, at 9:16 AM, Gavin Kistner wrote:
> 
>> Summary:
>> ========================================================
>> I'm trying to install SVN server with Apache2, and I can't get apache 
>> built with Berkeley4.2. I've read the FAQ, applied the patch, and 
>> attempted numerous ways to get it to work. No glory. Help? Please?
> 
> 
> Followup: I still need your help. Slightly more information follows:
> 
> root@Frump:/usr/local/BerkeleyDB.4.2# find . -name 'db*.h'
> ./include/db.h
> ./include/db_cxx.h
> 
> 
> Using  --with-dbm=db42 --with-berkeley-db (without a path specified) 
> produces the following output when apr-util goes searching:
> 
> checking checking for Berkeley DB 4.2 in the standard places...
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db-4.2... no
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db4... no
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db... no
> checking checking for Berkeley DB 4.2 in /usr/local/BerkeleyDB.4.2...
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db-4.2... no
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db4... no
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db... no
> configure: error: Berkeley db4 not found
> configure failed for srclib/apr-util
> 
> 
> -- 
> (-, /\ \/ / /\/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

Posted by Gavin Kistner <ga...@refinery.com>.
On Mar 8, 2004, at 9:16 AM, Gavin Kistner wrote:
> Summary:
> ========================================================
> I'm trying to install SVN server with Apache2, and I can't get apache 
> built with Berkeley4.2. I've read the FAQ, applied the patch, and 
> attempted numerous ways to get it to work. No glory. Help? Please?

Followup: I still need your help. Slightly more information follows:

root@Frump:/usr/local/BerkeleyDB.4.2# find . -name 'db*.h'
./include/db.h
./include/db_cxx.h


Using  --with-dbm=db42 --with-berkeley-db (without a path specified) 
produces the following output when apr-util goes searching:

checking checking for Berkeley DB 4.2 in the standard places...
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db-4.2... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db4... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db... no
checking checking for Berkeley DB 4.2 in /usr/local/BerkeleyDB.4.2...
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db-4.2... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db4... no
checking db4/db.h usability... no
checking db4/db.h presence... no
checking for db4/db.h... no
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for db... no
configure: error: Berkeley db4 not found
configure failed for srclib/apr-util


--
(-, /\ \/ / /\/


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