Caveat: You need root access on your Mac to do this!
Ages and ages ago, when I first was using MAMP and all that fun stuff, Apple didn’t include a version of SVN. I had installed, and promptly forgotten about, my 1.4.4 install sitting out there. Now, I know I upgraded it to 1.6.something at some point, but I only found out that was wiped out when I went to svn up some code on my site and it all died. My version of SVN was too old.
svn --version
was coming back as 1.4.4 and I knew that was wrong. I complained on Twitter, and Eric Hitter pointed out that Xcode has SVN (and Git) so I went and installed that. It didn’t work, I was still stuck on 1.4.4.
After checking that, indeed, svn was located at /Applications/Xcode.app/Contents/Developer/usr/bin/svn
, and that ran the right version, I deleted 1.4.4 manually by removing the following folders:
/opt/subversion /usr/local/bin/svn* /Library/Receipts/Subversion*
Then I made a fast alias ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/svn svn
over in /usr/local/bin/
to redirect my scripts, and finally I followed the directions from Panic to fix Coda, and changed the Subversion tool path setting in the Files pane of Coda’s Preferences to /Applications/Xcode.app/Contents/Developer/usr/bin/svn
. I also changed git to /Applications/Xcode.app/Contents/Developer/usr/bin/git
and made a fast link for that too, since I can.
Have a happy weekend!