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:

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/
Note: do not update libapr to 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/

No comments:

Post a Comment