Sunday, 7 December 2008

Updating Leopard's Pre-Installed Subversion

Here's the how to update Leopard's pre-installed copy of subversion.

Download and install the latest universal binary from CollabNet:
http://www.collab.net/downloads/community/includes/communitydownloads-getit-mac.html

The installer puts everything into /opt/subversion and creates symbolic links in /usr/local/bin but this doesn't disable the pre-installed copy in /usr/bin.

You need to get adventurous:
  1. Create symbolic links in /usr/bin/ and /usr/lib/ to the new subversion files in /opt/subversion/bin/ and /op/subversion/lib/
  2. Update your apache subversion configuration to use the new /opt/subversion/lib/svn-apache/mod_dav_svn.so
Note: do not update libapr to 1.0.2.12 as it will cause a problem with Apache.

Step by step using Terminal:

  1. Commit all your files and close all subversion clients eg Xcode
  2. If not logged in as an admin account switch user to an admin account:
    su admin
  3. Create links to the new subversion files:
    sudo ln -sf /opt/subversion/bin/svn* /usr/bin/
    sudo ln -sf /opt/subversion/lib/libsvn* /usr/lib/
  4. Edit your apache2 subversion configuration file: (your location may be different)
    sudo pico /etc/apache2/other/svn.conf
  5. Update LoadModule to:
    LoadModule dav_svn_module /opt/subversion/lib/svn-apache/mod_dav_svn.so

No comments:

Post a Comment