问题背景:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
问题现象:
执行后报错:
1. error while processing: https://github.com/VundleVim/Vundle.vim.git/info/refs
2. fatal: HTTP request failed
问题排查:
浏览器中直接请求 https://github.com/VundleVim/Vundle.vim.git/info/refs, 浏览器返回:
- Please upgrade your git client.
- GitHub.com no longer supports git over dumb-http: https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days
问题原因:
综上分析是 git version 版本过低造成
问题解决:
升级 git client 版本
- yum install curl
- yum install curl-devel
- yum install zlib-devel
- yum install openssl-devel
- yum install perl
- yum install cpio
- yum install expat-devel
- yum install gettext-devel
- wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.xz
- xz -d git-latest.tar.xz
- tar xvf git-latest.tar
- cd git-xxxx-xx-xx
- autoconf
- ./configure
- make && make install