cleey
望着那一丝海线,若隐若现。落日下的海霞,数不尽的美,看不完的醉
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

现在再次拉取成功

<< 上一篇 安装php svn扩展 Glogrotate: glog日志切割与清理工具 下一篇 >>
文章标签
随意 | Created At 2014 By William Clinton | 蜀ICP备14002619号-4 |