html tool

2016年11月21日星期一

[转]centOS 6.3 安装 最新版git

add:http://gxl-ct001.iteye.com/blog/2215965


  • yum install curl
  • yum install curl-devel
  • yum install zlib-devel
  • yum install openssl-devel
  • yum install perl-CPAN
  • yum install cpio
  • yum install expat-devel
  • yum install gettext-devel

  • wget http://distfiles.macports.org/git/git-2.1.1.tar.gz
  • tar xzvf git-latest.tar.gz
  • cd git-2011-11-30 #你的目录可能不是这个
  • autoconf
  • ./configure
  • make
  • sudo make install

  • git --version

参考网址:http://www.bitscn.com/os/linux/201410/337776.html

安装git出现的错误

Git在make的时候报错:Can't locate ExtUtils/MakeMaker.pm in @INC

解决方法如下:

yum -y install perl-devel perl-CPAN



git 需要perl来编译。然后重新make



Git Make时出现:tclsh failed; using unoptimized loading

    MSGFMT    po/bg.msg make[1]: *** [po/bg.msg] 错误 127



yum install tcl  build-essential tk gettext



安装之后使用https操作git 出现 :fatal: Unable to find remote helper for 'https'

yum install -y curl curl-devel

然后重新安装 git

没有评论:

发表评论