Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS X 10.8 is missing mod_*_svn.so libraries

After upgrading to OS X 10.8 (Mountain Lion) I find that my SVN server is broken. Under 10.7 I had it set up to use the httpd server to provide access, but after the upgrade the LoadModules for dav_svn_module and authz_svn_module (mod_dav_svn.so and mod_authz_svn.so) are missing.

Does anyone know how to get these for the standard Apple-provided subversion (v1.6.18)?

thanks, Thom

like image 706
Thom DeCarlo Avatar asked Jul 29 '12 19:07

Thom DeCarlo


1 Answers

You can restore svn over http support on OS X 10.8, aka Mountain Lion.

Two Apache httpd modules need to be built from source. The two modules are:

  • mod_dav_svn.so
  • mod_authz_svn.so

The steps required are detailed in this article, Serving svn with httpd on OS X.

For Mac OS X 10.8, the condensed steps are below, but worth reading the linked article first to understand what is going on:

curl 'http://archive.apache.org/dist/subversion/subversion-1.6.18.tar.bz2' > ~/Downloads/subversion-1.6.18.tar.bz2
cd ~/Downloads
bunzip2 subversion-1.6.18.tar.bz2
tar -xf subversion-1.6.18.tar
cd subversion-1.6.18
./configure
make
cp subversion/mod_dav_svn/.libs/mod_dav_svn.so /usr/libexec/apache2/.
cp subversion/mod_authz_svn/.libs/mod_authz_svn.so /usr/libexec/apache2/.
echo "LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so" >> /etc/apache2/httpd.conf
echo "LoadModule dav_svn_module libexec/apache2/mod_authz_svn.so" >> /etc/apache2/httpd.conf
like image 122
Graham Miln Avatar answered Oct 15 '22 13:10

Graham Miln