go get,git fatal: HTTP request failed
问题一: fatal: HTTP request failed
使用go get url 拉取时提示:git fatal: HTTP request failed
# go get github.com/golang/glog # cd .; git clone https://github.com/golang/glog /root/golib/src/github.com/golang/glog Cloning into '/root/golib/src/github.com/golang/glog'... fatal: unable to access 'https://github.com/golang/glog/': SSL connect error package github.com/golang/glog: exit status 128
git 官网升级后,旧版git对https支持不友好,只需升级git版本即可
解决方法:升级git
wget https://github.com/git/git/archive/v2.2.1.tar.gz tar zxvf v2.2.1.tar.gz cd git-2.2.1 make configure ./configure --prefix=/usr/local/git make all make install echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/profile source /etc/profile
升级git后,重试拉取命令,结果提示SSL connect error
问题2:SSL connect error
# go get github.com/golang/glog # cd .; git clone https://github.com/golang/glog /root/golib/src/github.com/golang/glog Cloning into '/root/golib/src/github.com/golang/glog'... fatal: unable to access 'https://github.com/golang/glog/': SSL connect error package github.com/golang/glog: exit status 128
由于ssh版本过低
解决方法:升级ssh
yum update -y nss curl libcurl
现在再次拉取成功