How to avoid “cannot load such file — utils/popen” from homebrew on OSX

Original Answer The problem mainly occurs after updating OS X to El Capitan (OS X 10.11) or macOS Sierra (macOS 10.12). This is because of file permission issues with El Capitan’s or later macOS’s new SIP process. Try changing the permissions for the /usr/local directory: $ sudo chown -R $(whoami):admin /usr/local If it still doesn’t … Read more

Installing Homebrew on macOS

It’s on the top of the Homebrew homepage. From a Terminal prompt: /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)” The command brew install wget is an example of how to use Homebrew to install another application (in this case, wget) after brew is already installed. Historic… Before about 2020, the command given on the Homebrew page was: … Read more

brew update: The following untracked working tree files would be overwritten by merge:

Don’t forget to fetch the origin: cd /usr/local/Homebrew git fetch origin git reset –hard origin/master What happens is that you are trying to update brew, but brew itself is either not up to date (likely), there is a permissions change via some OS update (also likely), or brew is slightly corrupt (unlikely). Since brew itself … Read more

What does brew tap mean?

The tap command allows Homebrew to tap into another repository of formulae. Once you’ve done this you’ve expanded your options of installable software. These additional Git repos (inside /usr/local/Homebrew/Library/Taps) describe sets of package formulae that are available for installation. E.g. brew tap # list tapped repositories brew tap <tapname> # add tap brew untap <tapname> … 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

Homebrew: Could not symlink, /usr/local/bin is not writable [closed]

Following Alex’s answer I was able to resolve this issue; seems this to be an issue non specific to the packages being installed but of the permissions of homebrew folders. sudo chown -R `whoami`:admin /usr/local/bin For some packages, you may also need to do this to /usr/local/share or /usr/local/opt: sudo chown -R `whoami`:admin /usr/local/share sudo … Read more

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

Update: As of December 2020 and beyond, brew switch does not work, so use the other answer by @angabriel: brew install rbenv/tap/openssl@1.0 ln -sfn /usr/local/Cellar/openssl@1.0/1.0.2t /usr/local/opt/openssl Original Answer: Switch to an older openssl package brew switch openssl 1.0.2s Or, depending on your exact system configuration, you may need to switch to a different version. Check … Read more

Uninstall / remove a Homebrew package including all its dependencies

EDIT: It looks like the issue is now solved using an external command called brew rmdeps or brew rmtree. To install and use, issue the following commands: $ brew tap beeftornado/rmtree $ brew rmtree <package> See the above link for more information and discussion. [EDIT] see the new command brew autoremove in https://stackoverflow.com/a/66719581/160968 Original answer: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)