简体   繁体   English

须藤酿造医生 Mac OS X Sierra

[英]sudo brew doctor Mac OS X Sierra

I am trying to get pygame on my mac and so I am running through a step by step guide, to get the necessary items installed.我正在尝试在我的 mac 上安装 pygame,所以我正在逐步指导,以安装必要的项目。 I have installed brew doctor , but when I try to run the code: sudo brew doctor , I get an error shown below:我已经安装了brew doctor ,但是当我尝试运行代码时: sudo brew doctor ,出现如下错误:

apples-MBP-2:~ MaxRothman$ sudo brew doctor

Error: Running Homebrew as root is extremely dangerous and no longer supported.错误:以 root 身份运行 Homebrew 非常危险,不再受支持。 As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system.由于 Homebrew 不会放弃安装权限,因此您将授予所有构建脚本对系统的完全访问权限。

How can i get around this to carry on!我怎样才能解决这个问题继续下去! Thanks谢谢

As the error says:正如错误所说:

Error: Running Homebrew as root is extremely dangerous and no longer supported .错误:以 root 身份运行 Homebrew 非常危险,不再受支持

Run it without sudo as:在没有sudo情况下运行它:

brew doctor

Also take a look at: Viji's answer for installing doctor还可以看看: Viji关于安装医生的回答

Do not use sudo when running brew doctor as brew in general modifies binaries in your /usr/ directories which when binaries are owned by root could cause issues later one.运行 brew doctor 时不要使用sudo ,因为 brew 通常会修改 /usr/ 目录中的二进制文件,当二进制文件由 root 拥有时,可能会导致以后出现问题。

Just run brew doctor只需运行brew doctor

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM