Richards-MacBook-Pro:kr richard$ brew install bash
Updating Homebrew...
==> Installing dependencies for bash: readline
==> Installing bash dependency: readline
==> Using the sandbox
==> Downloading https://f...content-available-to-author-only...u.org/readline/readline-7.0.tar.gz
==> Downloading from http://f...content-available-to-author-only...t.ie/mirrors/gnu/readline/readline-7.0.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/readline/7.0 --enable-multibyte
==> make install
Error: Failed to create /usr/local/opt/readline
Things that depend on readline will probably not build.
Could not symlink .
/usr/local/opt is not writable.
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/readline/lib
CPPFLAGS: -I/usr/local/opt/readline/include
==> Summary
🍺 /usr/local/Cellar/readline/7.0: 46 files, 2.2M, built in 3 minutes 9 seconds
==> Installing bash
Error: /usr/local/opt/readline not present or broken
Please reinstall readline. Sorry :(
Richards-MacBook-Pro:kr richard$ sudo brew install bash
Password:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
Richards-MacBook-Pro:kr richard$