Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew will not run wget command (Library not loaded)

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.

like image 932
Deadface07 Avatar asked May 31 '18 19:05

Deadface07


People also ask

How do I fix wget command not found?

The “wget command not found” problem occurs when the system does not have the wget package installed on it. It can be fixed by installing the wget package on the system using the apt repository on the Ubuntu systems. For the CentOS systems, the yum command will be utilized to install the wget tool.

What is wget in homebrew?

WGET is a free tool to crawl websites and download files via the command line.

What is the equivalent of wget in Mac?

Other interesting Mac alternatives to Wget are cURL, ArchiveBox, HTTPie for Terminal and webui-aria2. Wget alternatives are mainly Download Managers but may also be Website Downloaders or HTTP Clients. Filter by these if you want a narrower list of alternatives or looking for a specific functionality of Wget.


3 Answers

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

brew uninstall --force gettext
brew install gettext
like image 165
Ken Shirriff Avatar answered Oct 08 '22 05:10

Ken Shirriff


brew uninstall wget
brew install wget

solved me both gettext and git clone issues.

like image 22
SANGEETHA P.H. Avatar answered Oct 08 '22 04:10

SANGEETHA P.H.


You can fix it by reinstall gettext

brew reinstall gettext
like image 5
howie Avatar answered Oct 08 '22 05:10

howie