On OSX using sourcetree / git-svn getting “Can't locate SVN/Core.pm in @INC ”

前端 未结 10 2120
离开以前
离开以前 2021-02-07 06:14

I\'m using OSX and want get a svn repo into a local git repo using sourcetree.

When I add a bookmark using sourcetree using SVN URL, thus sourcetree<

10条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 07:01

    Xcode 11.4 no longer includes SVN/Core.pm in its Perl bindings!

    If you've never installed the commandline tools and Xcode 11.4 is the first version you've run you will see this issue. Running xcode-select --install returns error: command line tools are already installed, use "Software Update" to install updates, which is accurate but non-obvious that your installed commandline tools differ from what you would get if installed outside of Xcode 11.4. The solution is to first remove these, then install the commandline tools using xcode-select.

    sudo rm -rf /Library/Developer/CommandLineTools
    xcode-select --install
    

提交回复
热议问题