This repository has been archived by the owner. It is now read-only.

failed to make wget #16231

vito-c opened this Issue Nov 26, 2012 · 14 comments


None yet
6 participants

vito-c commented Nov 26, 2012

==> Downloading
Already downloaded: /Library/Caches/Homebrew/wget-1.14.tar.gz
==> ./configure --prefix=/usr/local/Cellar/wget/1.14 --sysconfdir=/usr/local/etc --with-ssl=openssl --disable-iri
==> make install
/usr/bin/install -c -m 644 ./ '/usr/local/Cellar/wget/1.14/share/info'
install-info --info-dir='/usr/local/Cellar/wget/1.14/share/info' '/usr/local/Cellar/wget/1.14/share/info/'
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2


adamv commented Nov 26, 2012

brew install -v wget and brew --config and brew doctor please.

vito-c commented Nov 26, 2012

brew doctor
Your system is raring to brew.
brew --config
HEAD: ec5502d
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit nehalem
OS X: 10.7.5-x86_64
Xcode: 4.5.2
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: 2.6.4 => /usr/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

brew install -v wget


adamv commented Nov 26, 2012

You'll need to place the install output in a gist to prevent it from being cut off.

vito-c commented Nov 26, 2012


auxesis commented Dec 3, 2012

I had this problem when there was a dangling symlink after migrating my account from one machine to another.

You'll likely find an explanation for the install-am + install-recursive failures in ~/Library/Logs/Homebrew/wget/02.make.

the bottom of that file for me is:

cc -O2 -Wall -o wget cmpt.o connect.o convert.o cookies.o ftp.o css_.o css-url.o ftp-basic.o ftp-ls.o hash.o host.o html-parse.o html-url.o http.o init.o log.o main.o netrc.o progress.o ptimer.o recur.o res.o retr.o spider.o url.o warc.o utils.o exits.o build_info.o version.o ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a -lssl -lcrypto -lz -ldl -lz -lz
brew: superenv removed: -O2 -Wall
make[3]: Nothing to be done for install-data-am'. ../build-aux/install-sh -c -d '/usr/local/Cellar/wget/1.14/bin' /usr/bin/install -c wget '/usr/local/Cellar/wget/1.14/bin' Making install in doc make[3]: Nothing to be done forinstall-exec-am'.
/bin/sh /private/tmp/wget-xiTF/wget-1.14/build-aux/install-sh -d /usr/local/etc
./ -D VERSION="1.14" ./wget.texi wget.pod
install: /usr/local/etc/wgetrc: No such file or directory
make[3]: *** [install.wgetrc] Error 71
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

auxesis commented Dec 3, 2012

If you do a ls -lah /usr/local/etc/wgetrc I'm fairly certain it will be a dangling symlink.

gnzlbg commented Dec 3, 2012

@auxesis Im having the same problem and ls -lah /usr/local/etc/wgetrc says ls: /usr/local/etc/wgetrc: No such file or directory. I'm on MacOS 10.8.2.

Here my install / doctor /config gist:

auxesis commented Dec 3, 2012

If you do a readlink /usr/local/etc/wgetrc, it'll probably point to ../Cellar/wget/$version/etc/wgetrc

You can use this command to list and then delete all dangling symlinks.

Then you should be able to run brew install wget again and everything will work.

gnzlbg commented Dec 4, 2012

I'm sorry I didn't point it out before @auxesis , but i'm on a clean macos install (haven't installed wget for the first time yet!). readlink /usr/local/etc/wgetrc does not point to anything :/ Thanks anyways, I'm out of ideas so anything that might point to the problem would be really helpful.

I think i created the issue by updating osx from snow leopard to mountain lion.

I obliterated brew, reinstalled, and it works now.

gnzlbg commented Dec 8, 2012

:/ I have a clean mountain lion install. I did brew unlink boost and brew install wget and this was fixed.


adamv commented Jan 5, 2013

Closing due to no response / no idea. Clearing dangling symlinks will help if there are any.

@adamv adamv closed this Jan 5, 2013


$ sudo find -L /usr/local/etc/wgetrc -type l -exec rm -i {} + and confirm
$ brew install wget

Got some linking error, which was probably due to conflict with some old ass version in my machine somewhere. Ran:
$ brew link --overwrite wget

Everything is good 😏

Almost 10 months with this one. Hope what I wrote help someone else.

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.