Install wget on OS X Lion

Source: Internet
Author: User
Tags openssl

The original is here https://thomashunter.name/blog/install-wget-on-os-x-lion/


Install wget on OS X Lion

2011/11/05

A pre-requisite for the "to" is, and the second disc of utilities that came with your 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.gz

TAR-XZVF wget-1.13.4.tar.gz

CD wget-1.13.4

./configure--with-ssl=openssl

Make

sudo make install

Which 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 ... yes

Checking for Gpg_err_init in-lgpg-error ... no

Checking for Gcry_control in-lgcrypt ... no

Checking for libgnutls ... no

Configure:error:--with-ssl was given, but GnuTLS are not available.

username@host:~/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.

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.