macos - 在 Mac 上安装 Homebrew 的问题

标签 macos bash homebrew

按照 Homebrew 安装指南的规定,我在终端中输入以下内容:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

它吐出的内容如下:

-e:4: syntax error, unexpected '<'
<!DOCTYPE html>
 ^
-e:5: syntax error, unexpected '<'
<html>
 ^
-e:7: syntax error, unexpected '<'
    <meta charset='utf-8'>
     ^
-e:8: syntax error, unexpected '<'
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
     ^
-e:8: syntax error, unexpected tIDENTIFIER, expecting end-of-input
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

此时,运行任何 brew 命令都会返回以下内容:

-bash: brew: command not found

有什么解决方案吗?谢谢。

最佳答案

提供的 URL 对我也不起作用,但这样做:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

我怀疑 GitHub 端发生了一些变化。

关于macos - 在 Mac 上安装 Homebrew 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20105210/

相关文章:

python - pip install uwsgi 失败/usr/local/include/string/string.h :7:10: fatal error: 'sstream' file not found?

c++ - 如何设置 scons 输出完整的扩展命令行?

ruby - Windows,从 Ruby 运行 shell 脚本?

安装 macOS 10.15 Catalina 时缺少 PHP 7.3.8 zip 扩展

ios - 通过 NSStream 判断连接建立成功和连接断开

当requests_html使用pyppeteer安装Chrome时,python3 SSL证书问题

bash - 如何在打印输出的同时将命令的输出存储在变量中?

bash - 如何列出当前工作目录中的所有目录?

python - HomeBrew 安装的 Anaconda "Path not writable or missing."

postgresql - 如何在 Mac OSX 上使用 Homebrew 安装的 Postgres 中的扩展