Skip to content

Instantly share code, notes, and snippets.

@markjaquith
Created October 17, 2013 17:37
Show Gist options
  • Save markjaquith/7029068 to your computer and use it in GitHub Desktop.
Save markjaquith/7029068 to your computer and use it in GitHub Desktop.
How to get git-svn working in OS X Mavericks with Homebrew
sudo xcodebuild -license
xcode-select --install # There will be a GUI prompt
sudo cpan SVN::Core # use the "sudo" method when prompted
# Then add this to your ~/.profile:
# export PATH=/Library/Developer/CommandLineTools/usr/bin:$PATH
# Then probably:
brew reinstall git
brew reinstall subversion
@Gohan
Copy link

Gohan commented Jul 11, 2016

sudo cpan SVN::Core # use the "sudo" method when prompted

I didn't use the sudo
Then I find that I can't re install perl for sudo, what should I do?

@novalagung
Copy link

Thanks, worked on my el capitan

@grigory51
Copy link

grigory51 commented Apr 3, 2020

Hack for macOS Catalina:

  1. sudo bash -c 'PATH=$PATH:/usr/local/opt/apr-util/bin:/usr/local/opt/apr/bin LD_LIBRARY_PATH="${LD_LIBRARY_PATH}":/usr/local/opt/apr/libexec/lib cpan SVN::Core'
  2. export PERL5LIB="/usr/local/opt/subversion/lib/perl5/site_perl/5.30.1/darwin-thread-multi-2level/${PERL5LIB+:}${PERL5LIB}"
  3. Fix problem with hardcoded perl Homebrew/homebrew-core#52490 (comment)

@DavyDebacker-TomTom
Copy link

Thanks Grigory works like a charm.

@skyun1314
Copy link

Thanks Grigory works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment