下載源代碼安裝后,git clone出現(xiàn)“fatal unable to find remote helper for 'https'”的錯(cuò)誤,懷疑是git安裝不完全使用yum安裝,出現(xiàn):
Setting up Install Process
No package git available.
Nothing to do
解決辦法:
| 需要先添加EPEL(Extra Packages for Enterprise Linux) repository:
CentOS5.x 32-bit(x86/i386): rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm CentOS5.x 64-bit(x64): rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm CentOS6.x32-bit (x86/i386): rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm CentOS6.x 64-bit(x64): rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
|
然后yum install git
就能安裝了。