Hangs Installing any Package after clean install on macOS 10.14.1


(Malcolm Guthrie) #1

After a clean install of Homebrew on macOS 10.14.1 Homebrew hangs installing any package. When I run the brew install command with --verbose --debug I get the following.

$ brew install wget --verbose --debug
Updating Homebrew…
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
dartsim docfx feedgnuplot open-scene-graph pangomm vips

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/wget.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libidn2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gettext.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libunistring.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gpgme.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libmetalink.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pcre.rb
==> Installing dependencies for wget: gettext, libunistring, libidn2 and openssl
==> Installing wget dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.mojave.bottle.tar.gz
Already downloaded: /Users/malcolmguthrie/Library/Caches/Homebrew/downloads/20fb183d8882abab5874937646456a6d73fcd3510ec65a0b2a54fdfeb0174519–gettext-0.19.8.1.mojave.bottle.tar.gz
==> Verifying 20fb183d8882abab5874937646456a6d73fcd3510ec65a0b2a54fdfeb0174519–gettext-0.19.8.1.mojave.bottle.tar.gz checksum
==> Pouring gettext-0.19.8.1.mojave.bottle.tar.gz
tar xf /Users/malcolmguthrie/Library/Caches/Homebrew/downloads/20fb183d8882abab5874937646456a6d73fcd3510ec65a0b2a54fdfeb0174519–gettext-0.19.8.1.mojave.bottle.tar.gz -C /var/folders/90/0hdjfspj78g0zfxwz1n2vmrh0000gn/T/d20181105-6391-m22l1v
cp -pR /var/folders/90/0hdjfspj78g0zfxwz1n2vmrh0000gn/T/d20181105-6391-m22l1v/gettext/. /usr/local/Cellar/gettext

If I try running the cp -pR command from the command line it hangs as well.


(Claudia) #2

If I try running the cp -pR command from the command line it hangs as well.

To narrow down the issue, can you please run the following snippet in your Terminal and then copy/paste the output here?

(
  set -e
  cd "$(mktemp -d)"
  set -x
  brew fetch gettext
  time tar xf "$(brew --cache)"/downloads/`
    `20fb183d8882abab5874937646456a6d73fcd3510ec65a0b2a54fdfeb0174519`
    `--gettext-0.19.8.1.mojave.bottle.tar.gz
  time cp -pR gettext/. gettext-unpacked
) 2>&1

(Malcolm Guthrie) #3

It appears after upgrading to Mojave 10.14.1 the terminal is denied full disk access. To enable it follow the instructions here:

After enabling “Full Disk Access” for the terminal app, installation of homebrew packages proceed normally.


(Malcolm Guthrie) #4

Hello. Actually, my laptop is now giving me the same issue. Here’s the output from your snippet.

$ (
>   set -e
>   cd "$(mktemp -d)"
>   set -x
>   brew fetch gettext
>   time tar xf "$(brew --cache)"/downloads/`
>     `20fb183d8882abab5874937646456a6d73fcd3510ec65a0b2a54fdfeb0174519`
>     `--gettext-0.19.8.1.mojave.bottle.tar.gz
>   time cp -pR gettext/. gettext-unpacked
> ) 2>&1
+ brew fetch gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.mojave.bottle.tar.gz
Already downloaded: /Users/malcolmguthrie/Library/Caches/Homebrew/downloads/20fb183d8882abab5874937646456a6d73fcd3510ec65a0b2a54fdfeb0174519--gettext-0.19.8.1.mojave.bottle.tar.gz
SHA256: afc6a6120632b98d58b11fab82ae5e081206b89684dd948abf2d29caeb813ffd
++ brew --cache
+ tar xf /Users/malcolmguthrie/Library/Caches/Homebrew/downloads/20fb183d8882abab5874937646456a6d73fcd3510ec65a0b2a54fdfeb0174519--gettext-0.19.8.1.mojave.bottle.tar.gz

real	0m1.855s
user	0m0.627s
sys	0m0.693s
+ cp -pR gettext/. gettext-unpacked

(Claudia) #5

So this is the second computer where you’ve experienced the same issue?

Have you granted Terminal.app full disk access on your laptop, too?


(Malcolm Guthrie) #6

Yes, Terminal.app is granted full disk access.