**MIND THE DOUBLE QUOTES!!** Many copy-pastes, especially on Mac OSX will mangle them to “fancy quotes” or otherwiseĬonfigure should now complete successfully OPENSSL_LIBS=”-L/usr/lib -lssl -lcrypto -lz” OPENSSL_CFLAGS=”-I/usr/local/openssl-0.9.8zg/include -I/usr/local/openssl-0.9.8zg/include/openssl”. back where you unpacked wget, run the following, substituting the correct location of where you unpacked in step (2) unpack the openssl bundle into a tree somewhere…i used /usr/local/openssl-0.9.8zg, though that might not be strictly kosher because it’s not an installed thing at that pointģ. So don’t use that, even though openssl version commands on this OS indicate “zh” as the variant.Ģ. Note: the 0.9.8 zh package from various sources seems to be missing stuff, like the needed “include” directory.
Mac install wget download#
download openssl 0.9.8zg ( i won’t repeat the link it’s been cited already). On Sierra (10.12.3), the following has been shown to work on a clean install of the OS:ġ.
Mac install wget mac os x#
The latest version of wget should configure, make, and install fine in Mac OS X El Capitan and Yosemite as well.įor most Mac users, they’ll likely want to simply install Homebrew first and then get wget, simply because Homebrew makes command line package management incredibly easy and there’s no manual building and compiling of source code necessary. Install wget, it ends up in /usr/local/bin/:Ĭonfirm everything worked by running wget:Ĭlean up by removing wget source files when finished: configure -with-ssl=openssl -with-libssl-prefix=/usr/local/ssl 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 variation of configure (from Martin in the comments): Next we use tar to uncompress the files you just downloaded:Ĭonfigure with the appropriate –with-ssl flag to prevent a “GNUTLS not available” error: You can pick whichever one you want from the directory if you want a different version)
(sidenote: a 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 has been confirmed compatible with OS X Mountain Lion. Or to use an older version (prior versions of Mac OS X, including Mavericks, Mountain Lion, etc) Using curl to download the latest wget source for El Capitan, Yosemite, etc: You can check always check for the latest wget version through at /gnu/wget/ here. Moving ahead and assuming you have Xcode and the command line tools installed, launch Terminal and enter the following commands as shown.įirst, use curl to download the latest wget source: Command Line Tools installs a C compiler, GCC, and many other helpful utilities that are commonly used in the unix world. Because the package has to download from Apple, it may take a while depending on your internet connection.
Honestly, using Homebrew is much easier and is probably better for most users, but admittedly it’s not for everyone.įor those who don’t have the Command Line Tools package either with or without Xcode installed yet, it’s fairly simple: Open Terminal and type ‘xcode-select –install’, or you can do it from Xcode by opening XCode, then go “Preferences” and to the downloads section, and choose “Install Command Line Tools”, or you can get it from the Apple Developer Site as described here.
This approach is going to build and install wget in Mac OS X from source, this means you’ll need Xcode (App Store link), or at least and the Unix command line dev tools installed on the Mac, but it has the benefit of eliminating the need of a package manager like Homebrew or MacPorts. The command line tool wget lets you retrieve a group of files from FTP and HTTP protocols, it’s a very useful utility for web developers and powerusers to have around because it lets you do things like perform quick and dirty site backups and even mirror websites locally.