Original: https://thomashunter.name/blog/install-wget-on-os-x-lion/
Before installing, you need to confirm that Xcode is installed, and Xcode can download it for free on the App store. Then run the following command on the command line, which is to download, unzip, configure the compilation environment, compile and compile the installation. The most important is in the./configure with the--with-ssl=openssl, or will error, said SSL is not installed, the default use of SSL in Gnutuil. I'm just not here to install the article.
Run the following commands in a terminal window to compile wget on OS X Lion:
Curl-o http://ftp.gnu.org/gnu/wget/wget-1.13.4. TAR.GZTAR-XZVF wget-1.13.4. tar.gzCDwget-1.13.4./configure--with-ssl=opensslmakesudoMake Installwhich wget#Should output:/usr/local/bin/wget
Install wget on OS X lion2011/11/05
a pre-requisite for this to work are that the second disc of utilities. R Mac installed. This disc would provide a bunch of utilities required to compile code. Alternatively, you can install xcode from the App Store (it's free!) and you'll get all of the same utilities.
update:installing Xcode is no longer good enough. You'll now need-open Xcode, go to preferences (CMD +,), go-to-Downloads, and install the Command line Tools feature. This installs a bunch of development tools onto your system.
Run the following commands in a terminal window to compile wget on OS X Lion:
Curl-o http://ftp.gnu.org/gnu/wget/wget-1.13.4. TAR.GZTAR-XZVF wget-1.13.4. tar.gzCDwget-1.13.4./configure--with-ssl=opensslmakesudoMake Installwhich wget#Should output:/usr/local/bin/wget
Note the WITH-SSL=OPENSSL option in the command above. If you omit this, you'll get the following error:
...checking for compress In-lz ... yeschecking for gpg_err_init in-lgpg-error ... Nochecking for Gcry_control in-lgcrypt ... nochecking for libgnutls ... noconfigure:error:--with-ssl was given, but GnuTLS are not available. [email protected]:~/wget-1.13.4 $
The reason for this was that GnuTLS not included with Mac OS X, but the equally usable library OpenSSL is available.
MAC installation wget--with-ssl=openssl