简体   繁体   中英

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?

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

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM