From Evernote: |
Can't locate SVN/Core.pm in @INC |
Git實在是越用越順手,現在連SVN跟本都不想用
還好Git還有另一個指令,Git-svn 他的操作基本上跟Git沒什麼太大的差異
如要clone一個專案,你只需要下:
$ git svn clone [your url]
就是這麼簡單,不過
你一定要安裝Xcode上的「Command Line Tools」不然就會出現以下錯誤訊息:
BEGIN failed--compilation aborted at /usr/local/Cellar/git/1.8.2.1/lib/Git/SVN/Utils.pm line 6.
Compilation failed in require at /usr/local/Cellar/git/1.8.2.1/lib/Git/SVN.pm line 26.
BEGIN failed--compilation aborted at /usr/local/Cellar/git/1.8.2.1/lib/Git/SVN.pm line 33.
Compilation failed in require at /usr/local/Cellar/git/1.8.2.1/libexec/git-core/git-svn line 25.
BEGIN failed--compilation aborted at /usr/local/Cellar/git/1.8.2.1/libexec/git-core/git-svn line 25
安裝順序如下:
1.你一定要有安裝Xcode 最新版
2.開啟XCode -> Preferences -> Downloads ->選擇「Command Line Tools」點擊Install
裝完在試就ok了。