Home Download Buy Blog Forum Support

"'svn' binary could not be found in PATH" error

"'svn' binary could not be found in PATH" error

Postby wolfmetr on Fri Jul 27, 2012 1:42 am

This error window is displayed always and prevents work. The problem started after installing the Mountain Lion.
Full text of the error:
'svn' binary could not be found in PATH
Consider using the vcs_command to specify PATH
PATH is: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/bin

What should I do?

Install XCode 4.4 and
Xcode -> Preferences -> Downloads -> Command Line Tools -> Install.
$> vim ~/.profile
add this at the end of your .profile PATH="${PATH}:/Applications/Xcode.app/Contents/Developer/usr/bin/"

It work fo me
Last edited by wolfmetr on Fri Jul 27, 2012 6:01 am, edited 1 time in total.
Posts: 1
Joined: Fri Jul 27, 2012 1:37 am

Re: "'svn' binary could not be found in PATH" error

Postby wbond on Fri Jul 27, 2012 3:54 am

Apple removed Subversion from Mountain Lion, so it must be installed manually.

Instructions for installation are located at http://wbond.net/sublime_packages/svn/s ... ntain_Lion.
Posts: 568
Joined: Mon Feb 28, 2011 5:33 am

Re: "'svn' binary could not be found in PATH" error

Postby buymeasoda on Fri Jul 27, 2012 4:24 am

I'm looking into this issue too and found a couple of things...

Do you have Xcode installed? And if so, if you do a directory listing of:

Code: Select all

Does it include svn? There is an svn in there for my system. I've previously used the "Install Command Line Tools" option in Xcode, so it may have come from there.

But I'm wondering from this, is Apple moving these types of tools to be bundled with Xcode rather than defaulting to available on general user systems?

The other interesting thing about these items being located here, is in the "Preferences -> Downloads -> Components" help notice for the Command Line Tools is the following:

Code: Select all
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.

Going to the terminal and typing:

Code: Select all
xcrun svn

Will run the svn that is contained within the Xcode area. I've seen other people add the Xcode /.../usr/lib folder to their path so they can call the commands directly from anywhere normally, and others installing new copies via homebrew, macports or direct install.

The whole situation is a bit confusing really.


Ok, so even though I'd installed the command line tools with Lion and Xcode 4.3, after installing Mountain Lion and Xcode 4.4, I had to reinstall the command line tools to get them functioning again.

So Will is right on the money, with needing to download and run the command line tools :)
Posts: 65
Joined: Mon Jul 18, 2011 11:40 pm
Location: Brisbane, Australia

Re: "'svn' binary could not be found in PATH" error

Postby madla on Tue Aug 28, 2012 2:48 pm

I have the same problem but am not using the SVN plugin.

I recently upgraded CornerStone (SVN tool) and now I get the error every time I save. I tried to reinstall svn for Mountain Lion (I'm still on Lion and it won't let me install it). I downloaded SVN plugin and followed instructions, but that too doesn't fix it.

Any idea what else I could try?

Posts: 2
Joined: Sat Jul 21, 2012 3:40 pm

Return to Technical Support

Who is online

Users browsing this forum: duggum, Exabot [Bot], Google [Bot] and 27 guests