在使用 mac brew install ffmpeg 的时候遇到
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.123
上网查获得的提示是
sudo chown -R $(whoami):admin /usr/local1
结果依旧有错误。
chown: /usr/local: Operation not permitted1
查到的解释是 /usr/local 不再被 chown’d in High Sierra.
现在的做法是:
sudo chown -R $(whoami) $(brew --prefix)/*