git svn Broken in Mavericks (or Mountain Lion)

To allow use git connecting to subversion server there is a package called git-svn which includes connectors between the two systems. Upon upgrading to the Mavericks, git svn stopped working with the following error

$ git svn clone ....

Can't locate SVN/Core.pm 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.

The problem here is that the git svn command requires Perl libraries that aren’t linked in Mavericks (or Mountain Lion). So, we’ll have to manually link them. Run the following in your terminal to link the library:

$ sudo ln -s  /Applications/Xcode.app/Contents/Developer/Library/Perl/5.16/darwin-thread-multi-2level/SVN /System/Library/Perl/Extras/5.16/SVN

Now when you run git svn clone you will likely be presented with a different error. This is good because it indicates progress! But obviously poor because it’s not working.

$ git svn clone ....

Can't locate loadable object for module SVN::_Core in @INC (@INC contains: /usr/local/Cellar/git/1.8.4/lib /Library/Perl/5.16/darwin-thread-multi2level /Library/Perl/5.16 /Network/Library/Perl/5.16/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 /System/Library/Perl/Extras/5.16/SVN/Base.pm line 59 BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.16/SVN/Core.pm line 5. Compilation failed in require at /usr/local/Cellar/git/1.8.4/libexec/git-core/git-svn line 41.

So now it appears it can find the Subversion core, but cannot find some other libraries it requires. Issue the following command to remedy this:

$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.16/darwin-thread-multi-2level/auto/SVN/ /System/Library/Perl/Extras/5.16/auto/SVN

After that all shold be on the way

For further detail please take a look to original article here

Labels

git git Delete
svn svn Delete
maverick maverick Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.