Search code examples
macoswgetosx-elcapitanlibssllibressl

How to install wget in macOS?


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?


Solution

  • Using brew

    First install brew:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    

    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