问题背景:下载eos代码报错
git clone https://github.com/eosio/eos --recursive
[root@localhost bigdata]# git clone https://github.com/EOSIO/eos --recursive Initialized empty Git repository in /bigdata/eos/.git/ error: while accessing https://github.com/EOSIO/eos/info/refs fatal: HTTP request failed
问题解决:升级 git client 版本
git --version #git version 1.7.1版本过低无法正常下载
版本升级: 安装 依赖
yum install -y curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel
版本编译并安装
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.xzxz -d git-latest.tar.xztar xvf git-latest.tarcd git-xxxx-xx-xxautoconf./configuremakemake install
添加变量并生效
echo "export PATH=$PATH:/usr/local/bin/git" >> /etc/bashrc source /etc/bashrc
已是最新版本
[root@master bigdata]# git --version git version 2.18.0-rc1
重新下载
git clone https://github.com/eosio/eos --recursive
再次报错:SSL connect error
Cloning into 'eos'... fatal: unable to access 'https://github.com/eosio/eos/': SSL connect error
解决方法:
git config --global http.sslversion tlsv1
问题全部解决
git clone https://github.com/eosio/eos --recursive
精彩评论