在OS X Yosemite上,Git Clone因sslRead()错误而失败

pin*_*ops 17 git curl openssl gitlab osx-yosemite

我目前正在使用OS X Yosemite 10.10.3,并试图克隆现有的repo,它在Windows上运行正常.我尝试过使用curl/openssl通过自制软件安装git的组合,但没有运气.当我运行git clone时,我得到以下ssl读取错误:

GIT_CURL_VERBOSE=1 git clone http://myURL/gitlab/project/project.git

> remote: Counting objects: 1641, done. remote: Compressing objects:
> 100% (1588/1588), done.
> * SSLRead() return error -98061641), 136.73 MiB | 1.71 MiB/s    
> * Closing connection 2 remote: Total 1641 (delta 910), reused 0 (delta 0) error: RPC failed; result=56, HTTP code = 200 Receiving objects:
> 100% (1641/1641), 137.48 MiB | 1.64 MiB/s, done. Resolving deltas:
> 100% (910/910), done.
Run Code Online (Sandbox Code Playgroud)

我已经尝试过使用Https和Http而没有运气.还有其他人打过类似的东西吗?

下面是git,curl和openssl版本的输出,如果有帮助的话.

curl --version
curl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz 

git --version
git version 2.4.1

openssl version
OpenSSL 0.9.8zd 8 Jan 2015
Run Code Online (Sandbox Code Playgroud)

提前感谢任何方向!

pin*_*ops 23

Javabrett的链接让我得到答案,它围绕Yosemite使用不正确的SSL依赖,Git最终使用.

使用这些标志通过自制软件安装Git工作:

brew install git --with-brewed-curl --with-brewed-openssl
Run Code Online (Sandbox Code Playgroud)

要么:

brew reinstall git --with-brewed-curl --with-brewed-openssl
Run Code Online (Sandbox Code Playgroud)

  • 您可能还需要``curl`和`--with-openssl`选项(在OS X 10.11全新安装上). (8认同)

lme*_*n6e 7

如果在上面答案(brew reinstall git --with-brewed-curl --with-brewed-openssl)不起作用之前没有酿造过的openssl .

这里描述的工作流程做得更好:

$ brew remove git
$ brew remove curl

$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git
Run Code Online (Sandbox Code Playgroud)