自制程序错误您的用户无法写入以下目录:

新手上路,请多包涵

当我尝试通过 Homebrew 安装 Python 3 时,收到以下消息。我该如何解决这个错误?

我不熟悉命令行,所以如果您能为我提供确切的命令来执行以解决问题,我将不胜感激。

 Error: The following directories are not writable by your user:
/usr/local/share/man/man7

You should change the ownership of these directories to your user.
  sudo chown -R $(whoami) /usr/local/share/man/man7

And make sure that your user has write permission.
  chmod u+w /usr/local/share/man/man7

原文由 Jaehyeon Robert Han 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 293
1 个回答

您必须通过运行以下命令更改上述目录的所有权:

 sudo chown -R $(whoami) /usr/local/share/man/man7

原文由 Ortomala Lokni 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进