githut has gradually become the mainstream trend of open source code management. git does not have a direct installation method for CentOS. Maybe the yum source of CentOS is not the latest. You can compile and install it by downloading the source code. Before installation, pay attention to installing gcc and zlib
wget https:/ /www.kernel.org/pub/software/scm/git/git-2.9.0.tar.gz
tar -xzvf git-2.9.0.tar.gz
cd git-2.9.0.tar.gz
./configure
make && make install
git --version
git version 2.9.0
indicates that the installation was successful.
Make encountered an error
usr/local/git/share/locale'
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/ local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
Solve: yum install perl-ExtUtils-MakeMaker
tclsh failed; using unoptimized loading
MSGFMT po/de.msg make[1]: *** [po/de.msg] Error 127
解决:yum install tcl
/bin/sh: msgfmt: command not found
make: *** [po/build/locale/da/LC_MESSAGES/git.mo] Error 127
解决:yum install gettext-devel
git clone时候提示fatal: Unable to find remote helper for 'https'
解决:yum install libcurl-devel
Install Git on CentOS
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326573890&siteId=291194637
Recommended
Ranking