wget on OS X Lion
I guess wget needs no further introduction.
Too bad its not included on OS X. so here are a few steps in getting it on an OS X Lion.
-
Download the source code of the latest version of wget from http://ftp.gnu.org/gnu/wget/
-
Once downloaded, extract it.. here i downloaded the bzip archive
tar -jxvf wget-1.13.4.tar.bz2
- Enter the extracted folder and configure. here we tell wget to configure with openssl instead of the default gnutls which breaks upon configuration
configure --with-ssl=openssl
- Compile
make
- Install
sudo make install
and now we have wget on OS X Lion
wisu-mbp:wget-1.13.4 wisu$ wget -V
GNU Wget 1.13.4 built on darwin11.3.0.
+digest +https +ipv6 -iri +large-file -nls +ntlm +opie +ssl/openssl
Wgetrc:
/usr/local/etc/wgetrc (system)
Compile: gcc -DHAVE\_CONFIG\_H -DSYSTEM_WGETRC=”/usr/local/etc/wgetrc”
-DLOCALEDIR=”/usr/local/share/locale” -I. -I../lib -I../lib -O2
-Wall
Link: gcc -O2 -Wall -liconv -lssl -lcrypto -lz -ldl -lz ftp-opie.o openssl.o
http-ntlm.o ../lib/libgnu.a
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Originally written by Hrvoje Niksic <hniksic at xemacs.org>.
Please send bug reports and questions to <bug-wget at gnu.org>.
Have fun!