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

    随后会输入密码

  • 相关阅读:
    js 仿 asp中的 asc 和 chr 函数的代码
    escape,encodeURI,encodeURIComponent
    从项目从SVN上check下来,用idea打开后,idea没有SVN的工具栏解决方法
    idea中导入SVN的项目时,连接失败,报“Cannot run program "svn"
    spring基础----事件(Applicaition Event)
    idea在导入项目时遇到的问题
    Spring基础---bean的初始化和销毁
    spring基础----EL和资源调用
    spring基础----Bean的Scope
    面试题-------------js三种信息框
  • 原文地址:https://www.cnblogs.com/netsa/p/7919150.html
Copyright © 2011-2022 走看看