|NO.Z.00001|——————————|^^ 报错 ^^|——|报错解决|

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

[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

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on   yanqi_vip  阅读(37)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示