redhat7.4 mounting Git (source installation according to the official website)

Proposed installation

1. Follow the steps for installing the official website

https://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git

2. Download the package of steps

https://git-scm.com/download

https://mirrors.edge.kernel.org/pub/software/scm/git/

 

 

Select Download the latest version

3. Run make prefix = / usr / local all given

/ Bin / sh: cc: command not found

The system is missing gcc, gcc install what problems can be solved

yum -y install gcc automake autoconf libtool make 

do it again

make prefix=/usr/local all
sudo make prefix=/usr/local install

4. Test whether the installation is successful, execute the command

git

 

Guess you like

Origin www.cnblogs.com/SmilingEye/p/11249405.html