How to install wget into MacOS without SSL GNUTLS error

How to install wget into MacOS without SSL GNUTLS error


You may face “wget command not found” through Terminal under MacOS because All MacOS Versions are contributed with curl (a network transfer tool) by default. However, take the following methods to install properly wget into MacOS without SSL GNUTLS error.

Method 1 - Install wget through Homebrew

If Homebrew has not been installed into your MacOS yet, Enter the following command line through Terminal (Found under /Application/Utilities/) to install Homebrew.

/usr/bin/ruby -e "$(curl -fsSL"

And then install wget with brew and also enable openressl for TLS support

brew install wget --with-libressl

If you are installing with Macports, this is pretty easy too.

sudo port install wget

Method 2 - Install wget: Get Xcode --> Using curl to get wget --> Configure and Install

Step 1: Get Xcode

xcode-select --install

Step 2: Use Curl to download wget

  • From terminal windows, enter the following command lines:
cd ~/Downloads
curl -O
tar -zxvf wget-1.19.5.tar.gz
cd wget-1.19.5/
  • Configure and Install:

an error may occur on SSL… due to SSL support GNUTLS is not available on MacOS.

configure: error: --with-ssl was given, but GNUTLS is not available.
  • Fix SSL support GNUTLS error:
./configure --with-ssl=openssl
sudo make install

wget will be installed in:


  • You may need to remove wget installer by the following command:
m -rf ~/Downloads/wget*