mac 下 sourcetree 下载 使用 安装svn

144
作者 lkqin
2015.10.31 11:02* 字数 278

mac 很多svn工具为什么选sourcetree 呢 只因为TA免费 不过免费没好货你懂的 就会有很多问题 请各位看官往下看

https://www.sourcetreeapp.com/ 下载 sourcetree (目前不可以用 也可以在http://www.pc6.com/mac/116568.html 这个网站上下载)
第一个错误 提示错误的https
解决方法:在命令提示行
svn ls https://192.168.1.252:8443/XXXXX/
https请修改为自己的
之后选p 然后输入密码就可以了
这次 sourcetree可以识别了 不过还是报错

    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   /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/5.18.2/darwin-thread-multi-2level /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/5.18.2   /Applications/SourceTree.app/Contents/Resources/git_local/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 /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.

BEGIN failed--compilation aborted at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.

Compilation failed in require at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN.pm line 26.

BEGIN failed--compilation aborted at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN.pm line 33.

Compilation failed in require at /Applications/SourceTree.app/Contents/Resources/git_local/libexec/git-core/git-svn line 25.

BEGIN failed--compilation aborted at /Applications/SourceTree.app/Contents/Resources/git_local/libexec/git-core/git-svn line 25.

解决方法: 1下载xcode (本人要开发ios所以下载了这个大家伙)

之后 在命令提示行 输入

xcode-select --install

选择安装 等5-6分钟就好了

这时候sourcetree还是不行 需要继续在命令提示行 输入

sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/SVN /System/Library/Perl/Extras/5.18/SVN
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/auto/SVN/ /System/Library/Perl/Extras/5.18/auto/SVN

```
之后才算真的好了

参考:
http://tech.myonlylonely.com/sourcetree%E5%9C%A8yosemite%E4%B8%8B%E6%8F%90%E4%BA%A4%E5%88%B0sae%E7%9A%84%E4%B8%80%E4%BA%9B%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3/#codesyntax_1

最后祝大家用的愉快

ios