git-svn problems on Mavericks

Still need help?

The Atlassian Community is here for you.

Ask the community


When you try to use git-svn on Mavericks, it doesn't work.


Firstly, make sure you've installed Xcode and the command line tools.

  1. Install Xcode 5
  2. Run "xcode-select --install"

Next, using any git-svn command might display this:

Can't locate SVN/ in @INC (@INC contains: /usr/local/Cellar/git/1.8.4/lib /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.4 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level/System/Library/Perl/Extras/5.16 .) at /usr/local/Cellar/git/1.8.4/libexec/git-core/git-svn line 41.
In order to fix this you need to symlink some Perl libraries from Xcode into the global Perl path, because Xcode no longer automatically puts them where they're needed:
sudo ln -s  /Applications/ /System/Library/Perl/Extras/5.16/SVN
sudo ln -s /Applications/ /System/Library/Perl/Extras/5.16/auto/SVN

Once you've done that, git-svn should work both on the command line and within SourceTree (in both system and embedded git modes)


Last modified on Nov 1, 2013

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.