gpt4 book ai didi

xcode - 无法使用brew 安装任何东西

转载 作者:行者123 更新时间:2023-12-02 02:24:18 25 4
gpt4 key购买 nike

我正在尝试使用 Homebrew 软件安装迦太基,但遇到以下问题。不仅是 carthage,我也无法使用brew 安装任何软件包。

==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "carthage".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
userXXXXXX ~ % brew info carthage
Error: No available formula or cask with the name "carthage".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.

我安装了 Homebrew 软件 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"我尝试使用以下命令卸载以查看是否可以解决问题。

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" 

并再次安装 Homebrew 程序,但仍然出现相同的错误。卸载时 - 我收到了这些消息。删除这些文件安全吗?这是其他软件包未安装的原因吗?

Homebrew uninstalled!
The following possible Homebrew files were not deleted:
/usr/local/Frameworks/
/usr/local/Homebrew/
/usr/local/McAfee/
/usr/local/bin/
/usr/local/etc/
/usr/local/include/
/usr/local/jamf/
/usr/local/lib/
/usr/local/opt/
/usr/local/sbin/
/usr/local/share/
/usr/local/var/
You may wish to remove them yourself.

系统配置:macOS Catalina - V 10.15.6Xcode (11.0)节点:v10.14.1当我运行brew doctor时,我看到很多带有以下消息的.h文件。

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

请帮忙。我不确定我在这里做错了什么。

最佳答案

我使用了 brew doctor 并遵循了一些警告输出的建议命令。这就成功了!

关于xcode - 无法使用brew 安装任何东西,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65932861/

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