mac 下 sourcetree 下载 使用 安装svn

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

最后祝大家用的愉快
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • @synthesize和@dynamic分别有什么作用?@property有两个对应的词,一个是 @synthes...
    笔笔请求阅读 541评论 0 1
  • 猜想runloop内部是如何实现的?一般来讲,一个线程一次只能执行一个任务,执行完成后线程就会退出。如果我们需要一...
    笔笔请求阅读 445评论 0 0
  • 【Aipm引导页】 https://58976235.wodemo.net/down/20170514/44034...
    Mr_洛寒阅读 2,707评论 3 5
  • 最近听了一本书《发现你的天赋》,作者肯·罗宾逊,英国华威大学教育学领域的教授,被英国女王伊丽莎白二世封为爵士。他的...
    Zoeyzhao007阅读 494评论 2 1
  • 欲望变人不变心 读完《知北游》整个人都陷入了沉思,作者以林飞的第一人视角写完了整本书,从一个小乞丐到北...
    卓千叶阅读 205评论 0 0