在使用sourcetree/git-svn的OSX上,获取“无法在@INC中找到SVN/Core.pm".
问题描述:
我正在使用OSX,并希望使用sourcetree
将svn存储库转换为本地git存储库.
I'm using OSX and want get a svn repo into a local git repo using sourcetree
.
当我通过使用SVN URL的sourcetree添加书签时,因此sourcetree
知道它是SVN URL,但是当我单击克隆"按钮时,它报告如下错误:
When I add a bookmark using sourcetree using SVN URL, thus sourcetree
knows it's a SVN url, but when I click the clone button, it reports an error like following:
Can't locate SVN/Core.pm in @INC (@INC contains: /usr/local/git/lib/perl5/site_perl /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN/Editor.pm line 5.
BEGIN failed--compilation aborted at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN/Editor.pm line 5.
Compilation failed in require at /Applications/SourceTree.app/Contents/Resources/git_local/libexec/git-core/git-svn line 81.
BEGIN failed--compilation aborted at /Applications/SourceTree.app/Contents/Resources/git_local/libexec/git-core/git-svn line 81.
我不知道如何解决它.谁能给我有关如何执行此操作的指示?
I don't how to get it through. Can anyone give me a pointer on how to do this?
答
我最近遇到了 el capitain 这个缺少的SVN/Core.pm
问题.
I hit this missing SVN/Core.pm
issue recently with el capitain.
我使用的修复来自
下面的评论者说,这也适用于 sierra 和 high sierra .
Commenters below, say this worked on sierra and high sierra too.