Monday, April 25, 2016

Using git svn on El Capitan

I needed to use git svn to do a svn migration, and it was a very painful experience to figure out how to get that working again after I upgraded to El Capitan. It seems that with Apple's system integrity, Apple has broken both ruby and perl setups to some degree, and it's taking a while to catch up with that.

Short story:

  1. Install homebrew
  2. Install ruby from homebrew
  3. Install svn using homebrew
  4. Install a new version of git using homebrew.

Now you still get an error:
Can't locate SVN/ in @INC (you may need to install the SVN::Core module)
For this, run the following, to create some symlinks that are required for perl.
sudo mkdir /Library/Perl/5.18/auto sudo ln -s /Applications/‌-2level/SVN /Library/Perl/5.18/darwin-thread-multi-2level sudo ln -s /Applications/‌-2level/auto/SVN /Library/Perl/5.18/auto/
Dear Apple... Remember when stuff just worked ? When you cared about developers ?  This golden period in the early naughts ? Somewhat alike what Microsoft is beating you at now ? Please bring that back!