Enabling wget in OS X

Although Mac OS X has a lot of UNIX commands, wget is not one of them. The alternative command curl is vey powerful, but many UNIX scripts rely on wget. Enabling wget in OS X is quite straightforward.

Enabling wget in OS X.

On Andrew Merenbach’s site is an OS X package for wget, download it here: Download

Install the package and you’re all set and done. When typing wget in your terminal, this is the result:

iMac-van-Patrick:~ patricksinke$ wget
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.

Alternative method

It’s also possible to build the binary yourself:

1) download and install XCode from the App Store. It’s free, although quite bulky (1.5GB).

2) Start XCode. Go to Menu -> Preferences -> Tab Downloads.

3) Install Command Line Tools.

4) Execute on the Terminal:

curl -O http://ftp.gnu.org/gnu/wget/wget-1.14.tar.gz
 tar xvzf wget-1.14.tar.gz
 cd wget-1.14
 ./configure --with-ssl=openssl
 make
 sudo make install

For unknown reasons, this didn’t work for me; I got the following error:

configure: error: --with-ssl was given, but GNUTLS is not available.

Maybe some other non-installed libraries are required.

2 Reacties

  1. Hi!

    You’ve probably found the answer by now, but there’s a typo in your code: it should read:

    –with-ssl=openssl” instead of
    –with-sll=openssl

    Give it a shot, it works way better! 🙂

Laat een reactie achter

Je e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

Deze site gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.

By using this site you acknowledge the use of cookies (which are mostly harmless, btw) More information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below you are agreeing to these settings.

Close