centos 6.8 安装git 报错

报错信息:

Can’t locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl                                                                             5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_pe                                                                             rl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed–compilation aborted at Makefile.PL line 3.  

 

 

解决方法:

yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

 

依赖大礼包:

yum -y install zlib-devel
yum -y install libcurl-devel
yum -y install expat-devel
yum -y install perl-ExtUtils-MakeMaker
yum -y install tcl
yum -y install gettext
yum -y install asciidoc
yum -y install xmlto
yum -y install perl-devel perl-CPAN


yum -y install docbook2X.x86_64
cd /usr/bin

ln -s db2x_docbook2texi docbook2x_texi




其他
报没 有docbook2x-texi错误
wget https://nchc.dl.sourceforge.net/project/docbook2x/docbook2x/0.8.8/docbook2X-0.8.8.tar.gz
tar -zxf docbook2x-0.8.8.tar.gz
cd docbook2x-0.8.8.tar.gz
./configure
make && make install

#git-remote模块创建软链接,否则会报 unable to found http 错误
ln -s /usr/libexec/git-core/git-remote /usr/bin/git-remote



用不用先装了吧,不然会头疼

 

 

付git安装方法:

 

git代码:

git clone git://git.kernel.org/pub/scm/git/git.git

 

安装过程:

$ tar -zxf git-2.0.0.tar.gz
$ cd git-2.0.0
$ make configure
$ ./configure --prefix=/usr
$ make all doc info
$ sudo make install install-doc install-html install-info

 

 

安装完复制命令:(如原来有旧版本可以卸载了再复制过去)

ln /usr/local/bin/git /usr/bin/git  

#查看版本

git –version

 

克隆项目:(私有)报错:

error: The requested URL returned error: 401 Unauthorized while accessing

 

解决:使用用户名访问

#git clone http://用户名@kygs.xxxxc:3000/xxxx/CoBos.git

随后会输入密码

 

    原文作者:忙碌在路上
    原文地址: https://www.cnblogs.com/netsa/p/7919150.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞