Skip to content

Instantly share code, notes, and snippets.

@empeje
Last active August 11, 2022 13:50
Show Gist options
  • Save empeje/a80ab1127525fbc1f02fd71b67e17b00 to your computer and use it in GitHub Desktop.
Save empeje/a80ab1127525fbc1f02fd71b67e17b00 to your computer and use it in GitHub Desktop.
Fix Brew issue with Intel Mac OS Monterey

Issues

First you might need to fix permission

sudo chown -R $(whoami) /usr/local/Homebrew /usr/local/etc/bash_completion.d /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/doc /usr/local/share/info /usr/local/share/locale /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7 /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew/locks /usr/local/Cellar/ca-certificates/ /usr/local/Cellar/


chmod u+w /usr/local/Homebrew /usr/local/etc/bash_completion.d /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/doc /usr/local/share/info /usr/local/share/locale /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7 /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew/locks

You might need to add additional args in your openssl

See the link here.

You might need to add this

brew update
brew install openssl
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/local/bin/openssl

Learn more in this link.

This one as well

sudo chown -R $(whoami):admin /usr/local/* \
&& sudo chmod -R g+rwx /usr/local/*

Learn here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment