转自:http://www.jianshu.com/p/38d92385e0f6
http://www.unlimax.com/sourcetree.html
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
参考:http://www.contrid.co.za/2014/10/solved-os-x-yosemite-git-svn-broken/
你以为这样就可以了吗 不行啊
你还需要
在命令行输入
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
之后才算真的好了
最后祝大家用的愉快
文/lkqin(简书作者)
原文链接:http://www.jianshu.com/p/38d92385e0f6
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
原文链接:http://www.jianshu.com/p/38d92385e0f6
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。