问个 Debian 下编译 git 的问题

2021-04-09 15:05:34 +08:00
 boell
原先在 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 ?
846 次点击
所在节点    GitHub
2 条回复
lcdtyph
2021-04-09 15:07:55 +08:00
去装 backports 的 git 2.20.1 吧
boell
2021-04-10 22:04:39 +08:00
@lcdtyph 谢谢,已搞定。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/769445

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX