简体   繁体   中英

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. I have installed brew doctor , but when I try to run the code: sudo brew doctor , I get an error shown below:

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

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.

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 .

Run it without sudo as:

brew doctor

Also take a look at: Viji's answer for installing doctor

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.

Just run brew doctor

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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