我正在使用 OSX,并希望使用 sourcetree
将 svn 存储库获取到本地 git 存储库中。
当我使用 SVN URL 使用 sourcetree 添加书签时,sourcetree
知道这是一个 SVN url,但是当我单击克隆按钮时,它会报告如下错误:
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.
我不知道如何解决这个问题。谁能指导我如何做到这一点?
最佳答案
我最近在 elcaptain 中遇到了缺少 SVN/Core.pm
的问题。
我使用的修复来自 Paul Schreiber's blog :
sudo mkdir /Library/Perl/5.18/auto
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/SVN /Library/Perl/5.18/darwin-thread-multi-2level
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/auto/SVN /Library/Perl/5.18/auto/
下面的评论者说这对山脉和 Alpine 脉也有效。
关于macos - 在 OSX 上使用 sourcetree/git-svn 获取 "Can' t 在 @INC 中找到 SVN/Core.pm ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16578465/