12

I have found information that SVN comes with Mac OS X. But there was no SVN on my system. I have installed Subversion-1.6.17-1_10.7.x.pkg and all was good. But after update to Mac OS X 10.8.2 all SVN files were automatically removed from the system. I have tried to install Subversion-1.6.17-1_10.7.x.pkg again - but Next button is disabled. I have tried to found an updated version - but there is no Mac OS support now.

How to simply setup SVN on Mac OS X 10.8.2?

Thanks a lot for the help.

Dmitry
  • 14,306
  • 23
  • 105
  • 189
  • Yes, xCode is installed. The latest version. – Dmitry Sep 21 '12 at 12:04
  • I'm not 100% sure, but I think it comes with XCode or with the XCode tools. Did you install XCode (and the tools)? I have both XCode and the tools installed, and I do have svn. But I'm on Lion, not Mountain Lion. I do not have a Mountain Lion machine to check. – Analog File Sep 21 '12 at 12:06
  • I have installed xCode from the AppStore. It didn't ask me to seleced or deselect any components (tools). – Dmitry Sep 21 '12 at 12:17
  • 6
    Launch Xcode and then install the command line tools - see http://stackoverflow.com/a/9329325/253056 – Paul R Sep 21 '12 at 12:47
  • 1
    You can also Homebrew it. TL;DR: `ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"; brew update;` Then `brew install svn` for latest (1.8 at the time of this writing). Or, if you need svn 1.7 (say, for IDE integration) `brew tap homebrew/versions; brew install subversion17`. [Read more](http://michaelsanford.com/using-subverison-1-7-with-phpstorm-webstorm-or-intellij-idea-on-mac-os-x/). – msanford Jul 25 '13 at 03:07

1 Answers1

21

After you have installed Xcode 4.5 you need to follow these instructions in order to install the command line tools. Once you've done that successfully then you should see that svn is installed:

$ which svn
/usr/bin/svn
$ svn --version
svn, version 1.6.18 (r1303927)
   compiled Aug  4 2012, 19:46:53

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

$ 
Community
  • 1
  • 1
Paul R
  • 208,748
  • 37
  • 389
  • 560