Mac OS X MojaveでHomebrewがエラーを吐きまくる

bash
Mac
Homebrew

エラーいっぱい出る

brew install

を叩いただけで…↓

Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/lib
Error: Permission denied @ dir_s_mkdir - /usr/local/lib

だとか、

Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

だとか…

解決策

なんか色々フォルダが消えてるっぽい?
作ったり権限渡したりしてあげる

sudo mkdir /usr/local/include
sudo chmod 775 /usr/local/include
sudo chown -R $(whoami) /usr/local/include

sudo mkdir /usr/local/lib
sudo chown -R $(whoami) /usr/local/lib

sudo mkdir /usr/local/Frameworks
sudo chown -R $(whoami) /usr/local/Frameworks