在 OS X Yosemite 上,Git 克隆失败并出现 sslRead() 错误 [英] Git Clone Fails with sslRead() error on OS X Yosemite

查看:28
本文介绍了在 OS X Yosemite 上,Git 克隆失败并出现 sslRead() 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在 OS X Yosemite 10.10.3 上,并试图 git 克隆一个在 Windows 上运行良好的现有 repo.我尝试了通过自制软件和 curl/openssl 安装 git 的组合,但没有成功.当我运行 git clone 时,我收到以下 ssl 读取错误:

I'm currently on OS X Yosemite 10.10.3, and trying to git clone an existing repo which works fine on Windows. I've tried a combo of installing git through homebrew with curl/openssl with no luck. When i run the git clone, i get the following ssl read error:

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.

我尝试过同时使用 Https 和Http没有运气.有没有其他人遇到过类似的事情?

I've tried using both the Https & Http with no luck. Has anyone else hit something similar to this?

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

Below are outputs of git, curl, & openssl versions if that helps.

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

提前感谢您的任何指导!

Thanks in advance for any direction!

推荐答案

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

Javabrett's link got me to the answer, it revolves around Yosemite using an incorrect SSL dependency, which Git ends up using.

使用这些标志通过 homebrew 安装 Git 是可行的:

Installing Git via homebrew with these flags works:

brew install git --with-brewed-curl --with-brewed-openssl

或者:

brew reinstall git --with-brewed-curl --with-brewed-openssl

这篇关于在 OS X Yosemite 上,Git 克隆失败并出现 sslRead() 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆