IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    centos 6.5安装git

    wingyiulee发表于 2014-12-17 10:03:44
    love 0
    #yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel
    #wget https://www.kernel.org/pub/software/scm/git/git-2.2.0.tar.gz
    #tar -zxf git-2.2.0.tar.gz 
    #cd git-2.2.0
    #make prefix=/usr/local all
    #make prefix=/usr/local install
    

    如果出错下面错误

    /usr/bin/perl Makefile.PL PREFIX='/usr/local' INSTALL_BASE='' --localedir='/usr/local/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
    

    就是没装perl-devel导致

    The post centos 6.5安装git appeared first on wingyiu.



沪ICP备19023445号-2号
友情链接