如何使用"brew"在 Ubuntu 上安装 GCC



当我想在Ubuntu 18.04上运行brew install gcc时,我得到了一个错误:

Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.

我想在Ubuntu VPS上安装appium。请帮我安装appium或解决这个问题。错误图片

您可能需要重新安装brew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

然后你可以运行:

brew install gcc

最新更新