【发布时间】:2012-07-03 12:42:59
【问题描述】:
在我的 mac 上,首先我安装了已经安装了 git 的 xcode,但是 git 是旧版本。当我运行 which git 时,结果是:“/usr/bin/git”。
我想安装最新版本的 git,并将其用作默认 git。我在这个网站上试了一下方法:http://git-scm.com/book/en/Getting-Started-Installing-Git
首先,我更新到xcode版本的git,它不起作用。
然后,我尝试下载新版本的git并将其安装在usr/local/git目录下,当我运行命令“make prefix=/usr/local all”时,我遇到了一些问题:
ld: library not found for -lintl
collect2: ld returned 1 exit status
make: *** [git-credential-store] Error 1
有人知道如何解决这个问题吗?
另外,我尝试下载dmg文件并安装成功,但是当我运行命令git --version时,它仍然是旧版本。
谢谢。
【问题讨论】:
标签: git