After fresh Yosemite install SVN version is pretty old (I had 1.7.17), but don’t worry – upgrade process is simple but will take some time (15-25 mins depends on your CPU speed). This tutorial assumes you have XCode installed (but if you need SVN you probably have it):
1. Open terminal and paste
sudo -s
2. Create link to toolchain:
ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain
3. Download and unpack SVN 1.8.9:
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
4. Compile and install:
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
5. Check version:
svn --version
You should see something like this:
svn, version 1.8.8 (r1568071)
(yes, I know I downloaded 1.8.9 but it shows 1.8.8 somehow…)