MAC installation wget--with-ssl=openssl

Source: Internet
Author: User
Tags curl openssl

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.