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

Re: BerkeleyDB4.2 not looked for in build?

From: John Peacock <jpeacock_at_rowman.com>
Date: 2004-02-26 14:52:21 CET

Ben Collins-Sussman wrote:
> John, you and I have been repeating this "formula" to users left and
> right, about 20 times in the last few weeks. Do you think you could add
> it to our FAQ? Submit a FAQ patch? I'm dying to just point people to a
> fixed writeup.

Like the attached? I think that is well-formed (if not well-written). Someone
with more non-Linux experience may want to flesh out that last paragraph (on the
various alternatives to ld.so.conf).

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

Index: www/project_faq.html
==================================================================
--- www/project_faq.html (revision 7429)
+++ www/project_faq.html (local)
@@ -79,6 +79,8 @@
     but I know my repository URL is correct. What's wrong?</a></li>
 <li><a href="#configure-sed-error">When I run `<tt>configure</tt>', I
     get errors <tt>subs-1.sed&nbsp;line&nbsp;38:&nbsp;Unterminated&nbsp;`s'&nbsp;command</tt>. What's wrong?</a></li>
+<li><a href="#linux-bdb42-build">I'm having trouble building
+ Subversion under *NIX with BerkeleyDB 4.2 What should I do?</a></li>
 <li><a href="#windows-msvc-build">I'm having trouble building
     Subversion under Windows with MSVC++ 6.0. What should I do?</a></li>
 <li><a href="#windows-drive-letter">How can I specify a Windows drive letter in
@@ -1102,6 +1104,78 @@
 <tt>/usr/local/bin/apu-config</tt> on your system. Remove them, make
 sure the <tt>apr/</tt> and <tt>apr-util/</tt> that you're
 building with are completely up-to-date, and try again.
+</p>
+
+<![CDATA[-----------------------------------------------------------]]>
+
+<h3><a name="linux-bdb42-build">I'm having trouble building
+ Subversion under *NIX with BerkeleyDB 4.2.x What should I do?</a></h3>
+
+<p>
+Since BerkeleyDB 4.2.x came out more recently than the current apr library,
+sometimes the newer BDB libraries will not be located by Subversion's
+configure script, even if the <tt>--with-berkeley-db=PATH</tt> has been used.
+</p>
+
+<p>
+Currently, the easiest way to build Subversion and BerkeleyDB 4.2.x from
+source is to build Apache 2.0.48 from source <em>first</em>, make sure it is
+using the proper Berkeley libraries, then use Apache's apxs program to build
+Subversion itself.
+</p>
+
+<p>
+In practice, the sequence looks like this (here using the default installation
+location for each program):
+</p>
+
+<ol>
+<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>
+
+<li>Build and Apache 2.0.48 using at least the following options:</li>
+<pre>
+ $ configure \
+ --enable-dav \
+ --enable-so \
+ --with-berkeley-db=/usr/local/BerkeleyDB.4.2
+</pre>
+<p>
+You can confirm that Apache is built with the proper BDB libraries with the
+following command:
+</p>
+<pre>
+ $ ldd /usr/local/apache2/bin/httpd | fgrep libdb
+ libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
+</pre>
+
+<li>Build Subversion using at least the following options:</li>
+<pre>
+ $ configure \
+ --with-apxs=/usr/local/apache2/bin/apxs
+</pre>
+
+<p>
+Again, you can confirm that Subversion was built against the proper BDB
+library with the following:
+</p>
+<pre>
+ $ ldd /usr/local/bin/svn | fgrep libdb
+ libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
+</pre>
+</ol>
+
+<p>
+If you install your libraries in locations other than the defaults, you would
+need to adjust the paths at each step accordingly. Additionally, some Unix
+variants do not use ld.so.conf for run-time linking; please consult your O/S
+documentation for the specific method required (may involve setting a system
+wide environment variable).
 </p>
 
 <![CDATA[-----------------------------------------------------------]]>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 26 14:51:35 2004

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

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