svn克隆在OSX上死于信号11

svn克隆在OSX上死于信号11

本文介绍了git svn克隆在OSX上死于信号11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图将一个项目从svn迁移到git。我使用的是osx svn软件包,但我也尝试使用自制软件安装。

  git svn克隆http:// myserver / myrepo 
错误:git-svn死于信号11

版本信息:

  git --version 
git版本2.2.1

svn --version
svn,版本1.7.17(r1591372)
已编译2014年9月18日,13:06:44

我正在运行优胜美地。

解决方案

git svn 执行 git-svn 这是一个使用绑定到libsvn的Perl程序,这些绑定是很棘手的。如果Perl更改或SVN更改,可能会导致段错误。这两种情况都可能发生在操作系统升级中。



找出您的git正在使用哪个版本的SVN绑定。下面是我为OS X 10.10.1所得到的结果

  $ / usr / bin / git svn --version 
git -svn version 1.9.3(Apple Git-50)(svn 1.7.17)

试试按照@MykolaGurov的建议在brew中升级git 。似乎。您也可以尝试 brew重新安装subversion --with-perl 来重新安装Perl绑定。



或者使用操作系统X提供了/ usr / bin / git,它将由操作系统提供的SVN和Perl构建。



或者试试,我用它和它的git-svn工作。 port install git + svn


I'm trying to migrate a project from svn to git. I was using the osx svn package, but I also tried installing with homebrew. I keep getting this same error.

git svn clone http://myserver/myrepo
error: git-svn died of signal 11

Version information:

git --version
git version 2.2.1

svn --version
svn, version 1.7.17 (r1591372)
   compiled Sep 18 2014, 13:06:44

I'm running Yosemite.

解决方案

git svn executes git-svn which is a Perl program which uses bindings to libsvn and those bindings are touchy. If Perl changes, or SVN changes, that could cause a segfault. Both could happen in an OS upgrade.

Find out which version of the SVN bindings your git is using. Here's what I get for OS X 10.10.1

$ /usr/bin/git svn --version
git-svn version 1.9.3 (Apple Git-50) (svn 1.7.17)

Try brew upgrade git as suggested by @MykolaGurov in the comments. It seems there are fixes for 10.10 and git-svn. You might also try brew reinstall subversion --with-perl to reinstall the Perl bindings.

Or use the OS X provided /usr/bin/git which will be built with the OS provided SVN and Perl.

Or try MacPorts, I use it and its git-svn works. port install git +svn.

这篇关于git svn克隆在OSX上死于信号11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 12:38