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.
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! 🙂
Thanks Francis, I’ve updated the article!