boell
V2EX  ›  GitHub

问个 Debian 下编译 git 的问题

  •  
  •   boell · Apr 9, 2021 · 1672 views
    This topic created in 1865 days ago, the information mentioned may be changed or developed.
    原先在 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 replies    2021-04-10 22:04:39 +08:00
    lcdtyph
        1
    lcdtyph  
       Apr 9, 2021 via iPhone
    去装 backports 的 git 2.20.1 吧
    boell
        2
    boell  
    OP
       Apr 10, 2021
    @lcdtyph 谢谢,已搞定。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1117 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 18:18 · PVG 02:18 · LAX 11:18 · JFK 14:18
    ♥ Do have faith in what you're doing.