39

I received the following message when I try to use wget command after installation on Homebrew (running Mac High Sierra 10.13).

dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: /usr/local/bin/wget
  Reason: image not found
Abort trap: 6

I tried to reinstall wget. Issue still persists.

Deadface07
  • 399
  • 1
  • 3
  • 5

8 Answers8

61

wget gave me that error after migrating to a new macbook. What worked for me was

brew uninstall --force gettext
brew install gettext
Ken Shirriff
  • 1,654
  • 16
  • 20
47
brew uninstall wget
brew install wget

solved me both gettext and git clone issues.

Andriy Makukha
  • 7,580
  • 1
  • 38
  • 49
SANGEETHA P.H.
  • 1,059
  • 11
  • 7
6

You can fix it by reinstall gettext

brew reinstall gettext
howie
  • 2,587
  • 3
  • 27
  • 43
2

A simple reinstall of "wget" fixed this issue in my case.

brew reinstall wget
Ankit Sahu
  • 21
  • 1
2

Actually, I have tried a lot of methods, but the command brew reinstall wget solved my problems at last.

1

uninstall and reinstalling the brew will fix the issue

Uninstall

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

install

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Ravi
  • 211
  • 3
  • 11
  • Doing this after creating the Cellar and opt folder it needs inside /usr/local and assigning myself as the owner, helped. Thanks for the commands :) – Birb May 04 '19 at 16:24
0

I had similar issue with git , fixed it with brew reinstall gettext

  • Hi there! It seems this solution has already been proposed. On this site, posting duplicate answers is discouraged. – hat Apr 26 '19 at 14:44
0

Likely problem with libintl.8.dylib as in many other similar issues:

brew link --overwrite ruby
brew uninstall --force gettext
brew install gettext

locate libintl.8.dylib

if /gettext//libintl.*.dylib exists

brew link -f gettext

go to (depending on version)

cd /usr/local/Homebrew 
cd /usr/local/Library/Homebrew 

and execute (make sure you're in .../Homebrew directory)

git pull origin master
rm -fr ".git/rebase-apply"
brew update && brew upgrade

this last will took some time, but afterwards everything should work fine.

rapttor
  • 396
  • 3
  • 7