git: 'svn' is not a git command
brew install subversion
prompt We do not provide support for this pre-release version.
brew update
Can't locate SVN/Core.pm in @INC
Can't locate Git/SVN.pm in @INC (you may need to install the Git::SVN module)
Moremac下,SourceTree管理svn,拉取报错。
Can't locate Git/SVN.pm in @INC (you may need to install the Git::SVN module)
BEGIN failed--compilation aborted at
/Applications/Sourcetree.app/Contents/Resources/git_local/libexec/git-core/git-svn line 21.
10.13.x Solution:
sudo cpan Git::SVN
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/SVN/ /Library/Perl/5.18/SVN
sudo mkdir /Library/Perl/5.18/auto
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/auto/SVN/ /Library/Perl/5.18/auto/SVN
10.15.4 Solution:More
sudo cpan install YAML
sudo cpan install SVN::Core
--with-apr=/usr/local/opt/apr --with-apr-util=/usr/local/opt/apr-util
cpan install自动commit导致无法输入配置,直接在~/.cpan/xxx
目录下修改build.PL
$configure_args = $configure_args.'--with-apr=/usr/local/opt/apr --with-apr-util=/usr/local/opt/apr-util';
然后在安装当前目录sudo cpan install .