SVN Missing in Mac OS X 10.8 – Mountain Lion

Having recently upgraded to Mac OS X 10.8 – Mountain Lion, I was surprised to learn that SVN (Subversion) is not included in this release of the OS. This was a big pain point for me as I use Coda together with Versions for versioning and tracking revisions to my WordPress themes and websites.

One option is to download the latest Xcode for Mountain Lion from the Mac Apple Store. Once installed go to Xcode > Preferences > Downloads > Command Line Tools > Install.

The Command Line Tools contain the latest SVN system. However, for me downloading Xcode, all 1.5GB of it, was an overkill, especially as I only wanted the SVN element, and not the Xcode IDE as I’m not a OS X / iOS developer.

Luckily there is a way to install SVN without Xcode, simply install the Command Line Tools for Mountain Lion available as a separate 116MB download from the Apple Developer site. You’ll need an Apple Developer ID, but it’s free and easy to create using your existing AppleID.

Once you’ve downloaded the 116MB file and installed the tools, you can verify that SVN is installed and check the version by opening Terminal and enter the following at the command prompt svn --version, you should see something like:

$ svn --version

svn, version 1.6.18 (r1303927)
   compiled Jun 15 2012, 19:07:58

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

72 comments

  1. Thanks for this; couldn’t download the tools on their own as there was a problem with the Developers site and my ID which I’ve reported… but updating to the latest version of Xcode as we speak!

  2. Hi! Rajesh,

    A quicker route that I noticed in Mavericks (not sure if it works in MountainLion too) is to simply pull up a terminal window and type in SVN –version. Mac OS automatically brings up a dialog box asking whether you want to download and install the CommandLine tools, or XCode. A single click of a button, and the download / install process is initiated.

    Pretty smooth, I must say…

    Cheers! And thanks for this post.

    Susheel

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>