V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
boell
V2EX  ›  GitHub

问个 Debian 下编译 git 的问题

  •  
  •   boell · 2021-04-09 15:05:34 +08:00 · 832 次点击
    这是一个创建于 1106 天前的主题,其中的信息可能已经有所发展或是发生改变。
    原先在 Debian 8 环境下,因为自带的 git 版本太低,用下述方法编译安装了 git 2.20.4:

    apt-get install libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev build-essential autoconf
    curl -L --progress https://github.com/git/git/archive/v2.20.4.tar.gz | tar xz && cd git-2.20.4
    make configure && ./configure && make prefix=/usr/local all
    make prefix=/usr/local install

    现在换了 Debian 9,自带的 git 2.11 版本还是低了点,于是用同样的指令去编译,结果碰到一大堆 error,不知如何解决。请大佬们指点一下 Debian 9 该如何安装较新的 git ?
    2 条回复    2021-04-10 22:04:39 +08:00
    lcdtyph
        1
    lcdtyph  
       2021-04-09 15:07:55 +08:00 via iPhone
    去装 backports 的 git 2.20.1 吧
    boell
        2
    boell  
    OP
       2021-04-10 22:04:39 +08:00
    @lcdtyph 谢谢,已搞定。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2750 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:48 · PVG 20:48 · LAX 05:48 · JFK 08:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.