gpt4 book ai didi

git - 将 git 链接到 Homebrew 软件时出错

转载 作者:IT王子 更新时间:2023-10-29 01:29:55 26 4
gpt4 key购买 nike

<分区>

我正在关注 Luke Jones' article on setting up a local server ,我目前正在尝试在 Mavericks 上使用 git 设置 Homebrew 软件。在安装 homebrew 之前我已经安装了 git。我遇到了一个类似于 this question 的问题但是当我尝试运行 brew link git 时,我收到了以下错误:

Error: Could not symlink file: /usr/local/Cellar/git/1.8.5.1/share/git-core/templates/info/exclude
Target /usr/local/share/git-core/templates/info/exclude already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
brew link --overwrite formula_name

To list all files that would be deleted:
brew link --overwrite --dry-run formula_name

我的/etc/paths:

/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin

哪个 git 返回 /usr/bin/git

which brew 返回 /usr/local/bin/brew

不确定问题出在哪里,因为我仍然不擅长找到解决此类问题的方法。有人知道接下来要采取的步骤吗?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com