MAC中使用APICloud同步代码错误解决办法
在mac上使用apicloud同步代码时出现错误,其实就是git位置的问题,简单点就是把路径映射下。
问题提示:
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/5.18.2/darwin-thread-multi-2level /usr/local/git/lib/perl5/site_perl/5.18.2 /usr/local/git/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 /usr/local/git/lib/perl5/site_perl/git/svn/utils.pm line 6. begin failed--compilation aborted at /usr/local/git/lib/perl5/site_perl/git/svn/utils.pm line 6. compilation failed in require at /usr/local/git/lib/perl5/site_perl/git/svn.pm line 25. begin failed--compilation aborted at /usr/local/git/lib/perl5/site_perl/git/svn.pm line 32. compilation failed in require at /usr/local/git/libexec/git-core/git-svn line 21. begin failed--compilation aborted at /usr/local/git/libexec/git-core/git-svn line 21.
检出到指定路径:false
解决办法:
sudo ln -s /applications/xcode.app/contents/developer/library/perl/5.18/darwin-thread-multi-2level/svn/ /library/perl/5.18/svn
sudo mkdir /library/perl/5.18/auto
sudo ln -s /applications/xcode.app/contents/developer/library/perl/5.18/darwin-thread-multi-2level/auto/svn/ /library/perl/5.18/auto/svn