升级Xcode4.5之后,bash中SVN命令未找到

时间:2021-07-03 05:44:43

把Mac OS X 升级到10.8.2。

安装了Xcode4.5之后。

还是老样子,想在bash中用svn命令行,但是失败了

升级Xcode4.5之后,bash中SVN命令未找到

“-bash: svn: command not found”


解决方法:


打开Xcode,左上角苹果符号旁边Xcode选择 Preferences

升级Xcode4.5之后,bash中SVN命令未找到


选择Downloads,把Command Line Tools下载了


升级Xcode4.5之后,bash中SVN命令未找到

Before installing, note that from within Terminal you can use the XCRUN tool to launch compilers and other tools embedded within the Xcode application. Use the XCODE-SELECT tool to define which version of Xcode is active.  Type "man xcrun" from within Terminal to find out more.Downloading this package will install copies of the core command line tools and system headers into system folders, including the LLVM compiler, linker, and build tools.


下载好了,bash的svn命令就能用了