zoukankan      html  css  js  c++  java
  • 解决linux redhat6下安装git的问题

    今天用到linux上的git安装过程比较曲折,记录一下:  

    首先会报需要perl

    rpm -ivh git-1.7.1-14.2.x86_64.rpm

    warning: git-1.7.1-14.2.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID c428b69d: NOKEY

    error: Failed dependencies:

             perl is needed by git-1.7.1-14.2.x86_64

            perl(Error) is needed by git-1.7.1-14.2.x86_64
            perl(Git) is needed by git-1.7.1-14.2.x86_64

            perl-Git = 1.7.1-14.2 is needed by git-1.7.1-14.2.x86_64

    安装完perl后,还会报

    error: Failed dependencies:

            perl(Error) is needed by git-1.7.1-14.2.x86_64
            perl(Git) is needed by git-1.7.1-14.2.x86_64

            perl-Git = 1.7.1-14.2 is needed by git-1.7.1-14.2.x86_64

    还需要安装perl-Error-0.17015-4.el6.noarch.rpm,安装也顺利,下面要安装perl-git,但是问题来了:

    [root@localhost Packages]# rpm -ihv --aid perl-Git-1.7.1-2.el6_0.1.noarch.rpm 
    warning: perl-Git-1.7.1-2.el6_0.1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
    error: Failed dependencies:
    git = 1.7.1-2.el6_0.1 is needed by perl-Git-1.7.1-2.el6_0.1.noarch


    rpm -ivh git-1.7.1-14.2.x86_64.rpm
    warning: git-1.7.1-14.2.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID c428b69d: NOKEY
    error: Failed dependencies:
            perl(Error) is needed by git-1.7.1-14.2.x86_64
            perl(Git) is needed by git-1.7.1-14.2.x86_64
            perl-Git = 1.7.1-14.2 is needed by git-1.7.1-14.2.x86_64

    两者相互依赖!最终方法是同时安装:

    [root@localhost Packages]# rpm -ivf  perl-Git-1.7.1-2.el6_0.1.noarch.rpm  git-1.7.1-2.el6_0.1.x86_64.rpm 
    warning: perl-Git-1.7.1-2.el6_0.1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
    Preparing packages for installation...
    git-1.7.1-2.el6_0.1
    perl-Git-1.7.1-2.el6_0.1
    [root@localhost Packages]# 


    [zl@localhost ~]$ git --version
    git version 1.7.1

    安装成功!


  • 相关阅读:
    hsdis反汇编java源码工具的使用方法
    final添加内存屏障问题
    Spring-AOP
    Spring-IOC
    IO与NIO
    设计模式学习笔记
    Redis学习笔记
    MySQL优化
    STAR法则
    大文件分割之Linux
  • 原文地址:https://www.cnblogs.com/javawebsoa/p/3233898.html
Copyright © 2011-2022 走看看