Updating to SVN 1.8 for Mac OS X 10.10 Yosemite

Mac OS X 10.10 has just been released, but it is still running SVN 1.7.

Here is a simple tutorial to upgrade it to the latest 1.8 version, based on http://samoldak.com/updating-to-svn-1-8-for-mac-os-x-10-8/

Note: in order to compile and install SVN 1.8 you will need Xcode and its command line tools (available from the Apple developers downloads).

Open your terminal, and change user for root by typing

sudo -s

Create a symbolic link to your Xcode toolchain:

ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain

Download SVN 1.8 sources

cd ~/Downloads/
curl -o subversion-1.8.9.tar.gz http://archive.apache.org/dist/subversion/subversion-1.8.9.tar.gz
tar -xvf subversion-1.8.9.tar.gz

Compile SVN 1.8 from sources

cd ~/Downloads/subversion-1.8.9
sh get-deps.sh serf
cd serf/
./configure
make
make install
cd ..
./configure --prefix=/usr/local --with-serf=/usr/local/serf
make
make install

Your system should now report using SVN 1.8.9

svn --version