can‘t locate SVN/Core.pm in @INC (you may need to install the SVN::Core module)

小咪咪 2022-11-28 00:58 188阅读 0赞

在用sourceTree时,提交或拉取代码时提示错误:

  1. can't locate SVN/Core.pm in @INC (you may need to install the SVN::Core module) (@INC contains: /usr/local/git/lib/perl5/site_perl/5.18.2/darwin-thread-multi-2level /usr/local/git/lib/perl5/site_perl/5.18.2 /usr/local/git/lib/perl5/site_perl /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /usr/local/git/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.
  2. BEGIN failed--compilation aborted at /usr/local/git/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.
  3. Compilation failed in require at /usr/local/git/lib/perl5/site_perl/Git/SVN.pm line 25.
  4. BEGIN failed--compilation aborted at /usr/local/git/lib/perl5/site_perl/Git/SVN.pm line 32.
  5. Compilation failed in require at /usr/local/git/libexec/git-core/git-svn line 21.
  6. BEGIN failed--compilation aborted at /usr/local/git/libexec/git-core/git-svn line 21.

然后按照网上的方法均不可行。

开始自己排查问题。
先在命令行中输入git svn,发现一切正常,这时猜测是sourceTree的问题。

然后在sourceTree中把内置Git,更换为系统安装的Git,就解决了。

2021/04/28 问题

Mac 命令下 git svn --versionsvn --version 的svn版本不一致。导致 Unrecognized URL scheme error 错误。

解决方法:

  1. port install git +svn

发表评论

表情:
评论列表 (有 0 条评论,188人围观)

还没有评论,来说两句吧...

相关阅读