View Source


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

{panel}
*$ 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.{panel}

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:

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

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.

{panel}
*$ 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.
{panel}

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:

{noformat}
$ 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
{noformat}

After that all shold be on the way

For further detail please take a look to original article [here|http://blog.victorquinn.com/fix-git-svn-in-mountain-lion]