Take ownership of it and everything in it.
Mac OS High Sierra or newer: (ty to Kirk in the comments below)
$ sudo chown -R $(whoami) $(brew --prefix)/*
Previous versions of macos:
$ sudo chown -R $USER:admin /usr/local/include
Then do another
$ brew doctor
More Related Contents:
- Homebrew refusing to link OpenSSL
- How to install latest version of openssl Mac OS X El Capitan
- Update OpenSSL on OS X with Homebrew
- How to fix homebrew permissions?
- dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
- How can I start PostgreSQL server on Mac OS X?
- `pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)
- How to use GNU sed on Mac OS 10.10+, ‘brew install –default-names’ no longer supported
- Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)
- How to run the Homebrew installer under Rosetta 2 on M1 Macbook
- Uninstall / remove a Homebrew package including all its dependencies
- PDFtk Server on OS X 10.11
- Error: The ‘brew link’ step did not complete successfully
- Installing Homebrew on macOS
- What is the best/safest way to reinstall Homebrew?
- Using Homebrew with alternate GCC
- Postgres – FATAL: database files are incompatible with server
- Stuck at “.android/repositories.cfg could not be loaded.”
- Who is listening on a given TCP port on Mac OS X?
- You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)
- In-place edits with sed on OS X
- XAMPP permissions on Mac OS X?
- Swift – Capture keydown from NSViewController
- How to build a dmg Mac OS X file (on a non-Mac platform)?
- Vagrant box could not be found or could not be accessed in the remote catalog – incompatible curl version
- OSX – replace gcc version 4.2.1 with 4.9 installed via Homebrew
- cannot download, $GOPATH not set
- dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
- Tell iPadOS from macOS on the web
- How to generate core dumps in Mac OS X?