How to fix homebrew permissions?

I was able to solve the problem by using chown on the folder: sudo chown -R “$USER”:admin /usr/local Also you’ll (most probably) have to do the same on /Library/Caches/Homebrew: sudo chown -R “$USER”:admin /Library/Caches/Homebrew Apparently I had used sudo before in a way that altered my folder permission on /usr/local, from here on forward all … Read more

brew install mysql on macOS

I think one can end up in this position with older versions of mysql already installed. I had the same problem and none of the above solutions worked for me. I fixed it thus: Used brew’s remove & cleanup commands, unloaded the launchctl script, then deleted the mysql directory in /usr/local/var, deleted my existing /etc/my.cnf … Read more

How to install latest version of openssl Mac OS X El Capitan

Execute following commands: brew update brew install openssl echo ‘export PATH=”/usr/local/opt/openssl/bin:$PATH”‘ >> ~/.bash_profile source ~/.bash_profile You will have the latest version of openssl installed and accessible from cli (command line/terminal). Since the third command will add export path to .bash_profile, the newly installed version of openssl will be accessible across system restarts.

Homebrew refusing to link OpenSSL

This is what worked for me: 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 Thanks to @dorlandode on this thread https://github.com/Homebrew/brew/pull/597 NB: I only used this as a temporary fix until I could spend time correctly installing Openssl again from scratch. As I remember I spent … Read more