ZH ·
🌏 English

解决 OpenVINO 代码库 Clone 失败问题:RPC failed; curl 56

从代码安装

官方推荐从代码仓库直接进行安装。

遇到的问题

在尝试通过 Gitee 克隆 OpenVINO 代码库时,克隆过程反复失败,并提示以下错误信息:

# git clone -b 2022.3.0 https://gitee.com/openvinotoolkit-prc/openvino.git
Cloning into 'openvino'...
remote: Enumerating objects: 345561, done.
remote: Counting objects: 100% (59023/59023), done.
remote: Compressing objects: 100% (33490/33490), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

解决方法

出现该错误通常是因为仓库过大或网络不稳定导致数据传输中断。你可以通过增加 Git 的缓冲区大小并关闭压缩来解决此问题:

git config --global http.postBuffer 500M
git config --global http.maxRequestBuffer 100M
git config --global core.compression 0