jorgen
jorgen

Reputation: 564

Where is svn on Mac OS X 10.8?

According to the Apache Subversion home-page, svn is bundled with Mac OS X. This is corroborated by Apple's own Open-Source-in-Mac-OS-X directory page. Trying to run it on my Mountain Lion 10.8.4, however, looks like this:

foo:bar user$ svn
-bash: svn: command not found

Where has it gone to?

Upvotes: 3

Views: 12030

Answers (2)

shahil
shahil

Reputation: 1001

Steps:

  1. Open terminal
  2. Type: sudo nano /etc/paths
  3. Go to the end of file and paste: /Applications/Xcode.app/Contents/Developer/usr/bin
  4. Keyboard Hit: control + X
  5. Keyboard Hit: Y
  6. After hitting Y, hit enter, otherwise the changes will not be saved. (To confirm if the changes were saved correctly, repeat steps 1 and 2.)
  7. Restart the terminal and then you are ready.

For in depth details, refer:
http://www.threeeyedbird.com/blog/2012/08/06/where-did-svn-go-after-upgrading-to-os-x-mountain-lion-10.8/

Upvotes: 4

jorgen
jorgen

Reputation: 564

This blog describes in detail how svn is now bundled with Xcode, rather than Mac OS X itself, and contains suggestions how to amend the system path to work around this issue, provided you already have Xcode installed. In short, the 'bundled' svn may now be found here:

foo:bar user$ which svn
/Applications/Xcode.app/Contents/Developer/usr/bin/svn

Upvotes: 9

Related Questions