无法使用brew 安装任何东西

use*_*391 2 macos installation xcode 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. 
Run Code Online (Sandbox Code Playgroud)

我安装了自制软件,并 /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)" 
Run Code Online (Sandbox Code Playgroud)

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

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.
Run Code Online (Sandbox Code Playgroud)

系统配置:macOS Catalina - V 10.15.6 Xcode (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.
Run Code Online (Sandbox Code Playgroud)

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

小智 5

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