zoukankan      html  css  js  c++  java
  • CentOS7 上面升级git 2.24的方法

    本来想使用tar包进行安装 但是发现tar包安装时总是报错如下:

    [root@centos76 git-2.25.0]# make
        LINK git-imap-send
    imap-send.o: In function `sk_GENERAL_NAME_num':
    /usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_num'
    imap-send.o: In function `sk_GENERAL_NAME_value':
    /usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_value'
    imap-send.o: In function `sk_GENERAL_NAME_pop_free':
    /usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
    /usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
    imap-send.o: In function `ssl_socket_connect':
    /tfsagent/git-2.25.0/imap-send.c:287: undefined reference to `OPENSSL_init_ssl'
    /tfsagent/git-2.25.0/imap-send.c:288: undefined reference to `OPENSSL_init_ssl'
    /tfsagent/git-2.25.0/imap-send.c:290: undefined reference to `TLS_method'
    /tfsagent/git-2.25.0/imap-send.c:303: undefined reference to `SSL_CTX_set_options'
    collect2: error: ld returned 1 exit status
    make: *** [git-imap-send] Error 1

    按照segmentfault上面的方法我下载使用 openssl1.1.1b 都不行 还是这个错误.最后没办法 我从网上找rpm包进行安装

    关键字

    git rpm

    查到解决方案如下:

    注意安装2.24版本之前先 删除旧版本:

    yum remove git

    网站信息如下:

    https://centos.pkgs.org/7/endpoint-x86_64/git-core-2.24.1-1.ep7.x86_64.rpm.html
    Install Howto
    Download latest endpoint-release rpm from https://packages.endpoint.com/rhel/7/os/x86_64/
    Install endpoint-release rpm:
    # rpm -Uvh endpoint-release*rpm
    Install git-core rpm package:
    # yum install git-core

    用这个方式就能够升级了 版本情况如下:

    [root@centos76 myagent]# git version
    git version 2.24.1
  • 相关阅读:
    Google Analytics的Gif请求数据解读
    还原当年创业:屌丝逆袭后的华丽转身 (zz)
    减去脂肪,轻身上阵 (zz)
    离婚,感谢 (转载)
    delphi如何调用.NET webservice
    如何修改远程登陆3389端口
    软件中的2038问题讨论
    去掉cxgrid上面的分组的灰色栏
    从MDF文件恢复Sql Server2000数据库
    CxGrid的一些使用方法
  • 原文地址:https://www.cnblogs.com/jinanxiaolaohu/p/12269287.html
Copyright © 2011-2022 走看看