I've been wrestling with this all day on a CentOS 5.1 system, but getting strange db_create errors when trying to load
Code:
LoadModule dav_svn_module /usr/lib64/httpd/modules/mod_dav_svn.so
into the apache include editor. Couldn't find any good solutions here or in Google. Seemed to be related to DB4 (Berkeley DB) compatibility, but couldn't figure out how or what. Finally hit on the solution and thought I'd share.
Turns out the versions of subversion and mod_dav_svn that are available through the official CentOS yum repos are compiled against BerkeleyDB, but that doesn't work. Fortunately svn can fall back on other storage systems. To fix:
1) Remove subversion and mod_dav_svn via yum:
Code:
yum erase subversion
yum erase mod_dav_svn
2) Go to http://subversion.tigris.org/ and from there to binary RPM downloads section. You'll see this notice:
WARNING: The Red Hat Enterprise Linux 3 Subversion 1.2 and later RPMs above (from David Summers) are not compiled with Berkeley DB support (All other versions are compiled with Berkeley BDB support).
Aha! Exactly what you need. Navigate to the downloads for your OS and CPU (in my case this).
Download rpms for subversion and mod_dav_svn to /usr/local/src or somewhere, then install them with yum, bypassing the repos, e.g.:
Code:
yum localinstall ./subversion-1.4.6-1.rhel5.x86_64.rpm
yum localinstall ./mod_dav_svn-1.4.6-1.rhel5.x86_64.rpm
Now you should be able to load the module into the apache editor:
Code:
LoadModule dav_svn_module /usr/lib64/httpd/modules/mod_dav_svn.so
Worked for me anyway.