zoukankan      html  css  js  c++  java
  • 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

    随后会输入密码

  • 相关阅读:
    Robocode教程4——Robocode的游戏物理
    JAVA:获取系统中可用的字体的名字
    Robocode游戏规则
    Robocode教程2——你的第一个robo,取个好名字哦
    Robocode教程1——安装、运行、配置
    第二十四章 异常和错误处理 6异常类与模板的关系 简单
    第二十四章 异常和错误处理 5异常类的虚函数 简单
    第二十三模板 18.4算法类 简单
    解决不能通过'/tmp/mysql.sock'连到服务器 简单
    第二十四章 异常和错误处理 4创建异常类的成员函数 简单
  • 原文地址:https://www.cnblogs.com/netsa/p/7919150.html
Copyright © 2011-2022 走看看