2013年4月27日 星期六

Can't locate SVN/Core.pm in @INC

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」不然就會出現以下錯誤訊息:

Can't locate SVN/Core.pm in @INC (@INC contains: /usr/local/Cellar/git/1.8.2.1/lib /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /usr/local/Cellar/git/1.8.2.1/lib/Git/SVN/Utils.pm line 6.
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了。

沒有留言:

張貼留言