问题产生背景:
mac 笔记本通过home brew install 去安装ffmpeg发生如下的错误:
An unexpected error occurred during the `brew link` step The formula built...
解决办法:
Just Run below command
1)brew doctor
than
sudo chown -R $(whoami) $(brew --prefix)/*
note the $(brew --prefix)/* ...High Sierra doesn't allow you to change permissions on /user/local directly)
then this:
sudo install -d -o $(whoami) -g admin /usr/local/Frameworks
Your problem may be solve