Skip to content

Instantly share code, notes, and snippets.

@markjaquith
Created October 17, 2013 17:37
Show Gist options
  • Star 26 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • 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
@topdown
Copy link

topdown commented Nov 3, 2013

Thanks! This will be handy when I update I'm sure.

@csev
Copy link

csev commented Mar 12, 2014

Thanks - that worked nicely.

@whiteboardmonk
Copy link

Thanks, this worked for me like a charm :)

@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