HomeBlogsInstall wget on Mac OS Without Homebrew or MacPorts

Install wget on Mac OS Without Homebrew or MacPorts

This guide is about the Install wget in Mac OS X Without Homebrew or MacPorts. I will try my best so that you understand this guide very well. I hope you all like this guide Install wget in Mac OS X Without Homebrew or MacPorts.

Want to use wget on a Mac without Homebrew or MacPorts for some reason? You can do this by building a wget from the source command line.

You can use the command line tool wget to retrieve a group of files from the FTP and HTTP protocols. It is a very useful help for web developers and power users as it allows you to make quick and dirty backups and even mirror websites locally, for example.

This approach is going to build and install wget on Mac OS X from source, which means you need Xcode (App Store link) or at least and Unix command line development tools installed on Mac, but it has the advantage of eliminating the need for package management like Homebrew or MacPorts . Honestly, using Homebrew is much easier and probably better for most users, but it’s not for everyone.

For those who don’t already have a command line toolkit with or without Xcode code, it’s pretty simple: Open the terminal and type ‘Xcode-select –install’, or you can do it from Xcode by opening the XCode code and then going to the Settings and Downloads section and select “Install Command-Line Tools,” or you can obtain it from the Apple Developer Site as described here. Because the package must be downloaded from Apple, it may take some time depending on your Internet connection. Command line tools install the C compiler, GCC, and many other useful utilities commonly used in the unix world.

How to install wget on Mac OS X.

Go ahead and assuming you have Xcode and command line tools installed, start Terminal and type the following commands as shown.

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

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

Using 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 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

(sidenote: a new version of wget may be available, version 1.16.3 (wget-1.16.3.tar.gz) has been confirmed to work on MacOS Mojave, High Sierra, OS X El Capitan and OS X Yosemite, 1.15 has been confirmed to be compatible with OS X Mavericks while 1.13.4 has been confirmed to be compatible with OS X Mountain Lion.

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

Use cd to switch to directory: cd wget-1.15

Use the appropriate –with-ssl flag to specify the “GNUTLS not available” error: ./ configure –with-ssl = openssl

Note that if you still have a bug in Mac OS X 10.10+, Mac OS X 10.11+, macOS Sierra, Mojave, and later, use this configuration change (from Martin in the comments):

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

Build a source: make

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

Confirm all actions by running wget: wget -help

Clean up the wget source files when you’re done: cd .. && rm -rf wget *

Everything is ready, enjoy the wget in Mac OS X.

The latest version of Wget should be configured, made and installed fine including Mac OS X El Capitan and Yosemite.

For most Mac users, they probably want to simply install Homebrew first and then get wget simply because Homebrew makes command line package management incredibly easy and you don’t have to build the source code manually.

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

[wpsm_list type=”star”]

  • The Install wget in Mac OS X Without Homebrew or MacPorts guide is free to read.
  • We help many internet users follow up with interest in a convenient manner.
  • The price of the Install wget in Mac OS X Without Homebrew or MacPorts guide is free.

[/wpsm_list]

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

[wpsm_accordion]
[wpsm_accordion_section title=”Guide about Install wget in Mac OS X Without Homebrew or MacPorts”]
In this guide, I told you about the Install wget in Mac OS X Without Homebrew or MacPorts.
[/wpsm_accordion_section]
[wpsm_accordion_section title=”How this Guide helping you?”]
In this guide, I discuss about the Install wget in Mac OS X Without Homebrew or MacPorts, which is very helpful.
[/wpsm_accordion_section]
[wpsm_accordion_section title=”What are the supported devices for this guide?”]
Apple Devices only.
[/wpsm_accordion_section]
[wpsm_accordion_section title=”What are the supported Operating system?”]
mac OS or iOS
[/wpsm_accordion_section]
[/wpsm_accordion]
[wpsm_divider top=”2px” bottom=”15px” style=”fadeout”]

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

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

James Hogan
James Hogan is a senior staff writer at Bollyinside, where he has been covering various topics, including laptops, gaming gear, keyboards, storage, and more. During that period, they evaluated hundreds of laptops and thousands of accessories and built a collection of entirely too many mechanical keyboards for their own use.

RELATED ARTICLES

Must Read

- Advertisment -