报错解决一:
### --- 报错现象:

[root@localhost git-2.5.0]# autoconf        无法执行:
### --- 解决方案:

[root@localhost git-2.5.0]# yum install -y autoconf
报错解决二:
### --- 报错现象:

[root@localhost git-2.5.0]# make
/usr/bin/perl Makefile.PL PREFIX='/usr/local/git' INSTALL_BASE='' --localedir='/usr/local/git/share/locale'
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
make[1]: *** [perl.mak] Error 2
make: *** [perl/perl.mak] Error 2
### --- 解决方案:

[root@localhost git-2.5.0]# yum install -y perl-ExtUtils-MakeMaker package
报错解决三:
### --- 报错现象:

[root@localhost git-2.5.0]# make        
/bin/sh: msgfmt: command not found
### --- 解决方案:

[root@localhost git-2.5.0]# yum install gettext-devel
报错解决四:
### --- 报错现象:

[root@localhost git-2.5.0]# make
Can't locate ExtUtils/MakeMaker.pm in @INC
### --- 解决方案:

[root@localhost git-2.5.0]# yum -y install perl-devel perl-CPAN
报错解决五:
### --- 报错现象:

[root@localhost git-2.5.0]# make
tclsh failed; using unoptimized loading
    MSGFMT    po/bg.msg make[1]: *** [po/bg.msg] 错误 127
### --- 解决方案:

[root@localhost git-2.5.0]#yum install tcl  build-essential tk gettext
报错解决六:
### --- 报错现象:
~~~     安装之后使用https操作git报错:

[root@localhost git-2.5.0]# https: 
fatal: Unable to find remote helper for 'https'
### --- 解决方案:

[root@localhost git-2.5.0]# yum install -y curl curl-devel
报错解决七:
### --- 报错现象:
~~~     git安装时不使用--prefix指定安装目录,
~~~     默认安装在/usr/local/bin/git 需要把/usr/local/bin/git 复制或者ln到 /usr/bin/git
~~~     安装之后发现和程序包版本不一致:

[root@localhost git-2.5.0]# git --version
git version 1.8.13
### --- 解决方案:
~~~     创建软连接,把程序包中的git文件软连接到/usr/bin/git下

[root@localhost ~]# ln -s /usr/local/git/bin/git /usr/bin/git
[root@localhost git-2.5.0]# git version
git version 2.5.0
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐