Install wget on Mac OS Without Homebrew or MacPorts

Check tutorial of Install wget in Mac OS X Without Homebrew or MacPorts

So after a lot of requests from our users here is a guide about Install wget in Mac OS X Without Homebrew or MacPorts.

Want to have wget on Mac for any reason without Homebrew or MacPorts? You can do that by building wget from source code on the command line.

The wget command line utility allows you to fetch a group of files from FTP and HTTP protocols, it is a very useful utility for web developers and power users to use as you can do things with it like run fast and dirty site backups and even websites mirror locally.

This approach is going to build and install wget in Mac OS X from source, this means you need Xcode (App Store link), or at least and the Unix command line developer tools installed on the Mac, but it has the advantage of allowing a package manager such as Homebrew or MacPorts is no longer necessary. In all fairness, using Homebrew is much easier and probably better for most users, but admittedly, it’s not for everyone.

For those who don’t already have the Command Line Tools package, with or without Xcode installed, it’s pretty easy: Open Terminal and type ‘xcode-select –install’, or you can do it from Xcode by opening XCode and then go “Preferences” and to the download section, and choose “Install Command Line Tools”, or you can download it from the Apple Developer Site as described here. Since the package must be downloaded from Apple, it may take a while depending on your internet connection. Command Line Tools installs a C compiler, GCC, and many other useful utilities commonly used in the unix world.

How to Install wget in Mac OS X

Go ahead and assume that Xcode and the command line tools are installed, launch Terminal and enter the following commands as shown.

First, use curl to download the latest wget source: curl -O http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz

You can always check for the latest wget version at ftp.gnu.org/gnu/wget/ here.

Use curl to download the latest wget source for El Capitan, Yosemite, etc.: curl -O http://ftp.gnu.org/gnu/wget/wget-1.16.3.tar.xz

Or to use an older version (earlier versions of Mac OS X, including Mavericks, Mountain Lion, etc.) Curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar .gz

(note: new version of wget may be available, version 1.16.3 (wget-1.16.3.tar.gz) has been confirmed to work in macOS Mojave, High Sierra, OS X El Capitan and OS X Yosemite, 1.15 is confirmed compatible with OS X Mavericks, while 1.13.4 is confirmed compatible with OS X Mountain Lion, you can choose the one you want from the http://ftp.gnu.org/gnu/wget/ directory if you want a different one version)

Then we use tar to extract the files you just downloaded: tar -xzf wget-1.15.tar.gz

Use cd to go to the directory: cd wget-1.15

Configure with the correct –with-ssl flag to avoid a “GNUTLS not available” error: ./ configure –with-ssl = openssl

Note: If you still have an error in Mac OS X 10.10+, Mac OS X 10.11+, macOS Sierra, Mojave and later, use this configuration variant (from Martin in the comments):

./configure –with-ssl = openssl –with-libssl-prefix = / usr / local / ssl

Build the source: make

Install wget, it ends up in / usr / local / bin /: sudo make install

Confirm everything worked by running wget: wget –help

Clean up by removing wget source files when done: cd .. && rm -rf wget *

You’re all set, enjoy wget in Mac OS X.

The latest version of wget should also properly configure, create and install in Mac OS X El Capitan and Yosemite.

For most Mac users, they will likely want to install Homebrew first and then get wget, simply because Homebrew makes command line package management incredibly easy and doesn’t require manual building and compiling from source code.

Install wget in Mac OS X Without Homebrew or MacPorts Guide is free?

Starting from: Free
This guide is a free model
Free Trial: May be included, please check on the official site, we mentioned above.
The Install wget in Mac OS X Without Homebrew or MacPorts tutorial price is Free or Freemium. This means you can truly enjoy the Install wget in Mac OS X Without Homebrew or MacPorts guide.

The Install wget in Mac OS X Without Homebrew or MacPorts guide gives you an easy-to-use and efficient management and Install wget in Mac OS X Without Homebrew or MacPorts allows you to focus on the most important things. It’s friendly guide to use maybe you will love it and Install wget in Mac OS X Without Homebrew or MacPorts tutorial can be used on Linux, Windows or android devices.

Install wget in Mac OS X Without Homebrew or MacPorts: benefits

  • The Install wget in Mac OS X Without Homebrew or MacPorts tutorial is free .
  • Helps many users follow up with interest in a timely manner.
  • The price of the Install wget in Mac OS X Without Homebrew or MacPorts guide is free.

Install wget in Mac OS X Without Homebrew or MacPorts: FAQ

Tutorial Summary: Install wget in Mac OS X Without Homebrew or MacPorts

In this guide, we told you about Install wget in Mac OS X Without Homebrew or MacPorts; please read all steps so that you understand Install wget in Mac OS X Without Homebrew or MacPorts in case if you need any assistance from us, then contact us.

How this tutorial helping you?

So in this guide, we discuss the Install wget in Mac OS X Without Homebrew or MacPorts, which undoubtedly helps you.

What is actual time in which this method complete?

The time to complete the Install wget in Mac OS X Without Homebrew or MacPorts tutorial is 10+ minutes.

What are the supported Device?

Apple

What are the supported Operating system?

mac OS


Install wget in Mac OS X Without Homebrew or MacPorts Tutorial: final note

For our visitors: If you have any queries regards the Install wget in Mac OS X Without Homebrew or MacPorts, then please ask us through the comment section below or directly contact us.
Education: This guide or tutorial is just for educational purposes.
Misinformation: If you want to correct any misinformation about the guide “Install wget in Mac OS X Without Homebrew or MacPorts”, then kindly contact us.
Want to add an alternate method: If anyone wants to add the more methods to the guide Install wget in Mac OS X Without Homebrew or MacPorts, then kindly contact us.
Our Contact: Kindly use our contact page regards any help. You may also use our social and accounts by following the Whatsapp, Facebook, and Twitter for your questions. We always love to help you. We answer your questions within 24-48 hours (Weekend off).
Channel: If you want the latest software updates and discussion about any software in your pocket, then here is our Telegram channel.

Compsmag
Logo