按步骤执行,安装git
[root@localhost git-2.9.3]# tar -zxvf git-2.9.3.tar.gz
[root@localhost git-2.9.3]# cd /home/workspace/git-2.9.3
[root@localhost git-2.9.3]# mkdir /usr/local/git
[root@localhost git-2.9.3]# make prefix=/usr/local/git all
[root@localhost git-2.9.3]# sudo make prefix=/usr/local/git install
[root@localhost git-2.9.3]# yum -y install perl-devel
[root@localhost git-2.9.3]# vi /etc/profile
如果出现:
CC credential-store.o
/bin/sh: cc: command not found
执行: yum install gcc
如果出现: