How to install wget in macOS?

cfranco picture cfranco · Nov 24, 2015 · Viewed 258.5k times · Source

I try to install wget in MAC OS 10.11.1 but when I run ./configure --with-ssl=openssl I get this error:

configure: error: --with-ssl=openssl was given, but SSL is not available.

How to resolve this problem in OSX 10.11.1?

Answer

Farsheed picture Farsheed · Nov 24, 2015

Using brew

First install brew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

And then install wget with brew:

brew install wget

Using MacPorts

First, download and run MacPorts installer (.pkg)

And then install wget:

sudo port install wget