【问题标题】:Error when trying to install rsync with Brew on macOS High Sierra尝试在 macOS High Sierra 上使用 Brew 安装 rsync 时出错
【发布时间】:2018-12-11 22:54:53
【问题描述】:

我正在尝试使用 Brew 在 macOS high sierra 上安装 rsync:

brew install rsync

但我收到了这个错误:

Error: Could not create /usr/local/Cellar <br>
Check you have permission to write to /usr/local

【问题讨论】:

  • 你在尝试使用 sudo 吗??
  • 是的,但是当我尝试使用sudo 时出现此错误: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.

标签: macos homebrew


【解决方案1】:

您只需在 Mac 上卸载并重新安装 brew: 在此之前执行以下命令:

brew bundle dump

然后执行

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

【讨论】:

  • 这就像用炮弹杀死蚊子一样。有没有不那么极端的解决方案?
猜你喜欢
  • 2022-10-06
  • 2018-06-16
  • 1970-01-01
  • 1970-01-01
  • 2021-07-16
  • 2018-12-05
  • 1970-01-01
  • 1970-01-01
  • 2019-03-01
相关资源
最近更新 更多