Installing wget on a Debian Linux You need to use the apt-get command / apt command to install any package including wget. You can search for package name using the apt-cache command. In this thread, we will show 3 different methods to install wget into MacOS without SSL GNUTLS error. Our tutorial works on all MacOS versions:.
macOS Mojave, Sierra, and earlier versions come with the command line utility called ‘curl‘ which is a network transfer tool, it does not come with the popular ‘wget‘, in fact, ‘curl‘ can probably get you by just fine, check man curl at the command line to see its usage.
Otherwise, let’s look at getting ‘wget‘… this can be done in 3 ways.
1 – Install as Point and Click
Download and run the package from Rudix
2 – Compile from Source
To add and install wget to your system you need to download the source files, compile the code and make an install. To compile the code you need a compiler, unfortunately, it doesn’t come with macOS by default you need to install the free Xcode suite from Apple which includes the GCC compiler. This process also works exactly the same in previous macOS and OSX versions.
Get Xcode
Get the latest via Xcode via iTunes.
Next you need to install the Xcode command line tools, easiest way to do so by running in the Terminal:
Using curl to get wget
Get the latest wget source code from the ftp repository, or using curl from the command line:
Extract it and move into itConfigure and Install it
an error may occur on SSL…
wget needs to have some type of SSL support GNUTLS is most probably not available on your OS X system – if so use OpenSSL in the configure as an alternative use so re-run the configure with an SSL flag:
That’s it done, wget will be installed in:
Clean Up
Remove the source code and compressed file:
Test wget
Everything should work out fine – if you need to install more Unix style tools it will be faster and better to install a Package Manager for OSX like Homebrew – it makes installing and maintaining these applications so easy,
3 – Install from HomeBrew
OSX 10.11.4, here's what I get.checking for compress in -lz. Yeschecking for OPENSSL. Noconfigure: error: in `/Users/nevqld/wget-1.17':configure: error: The pkg-config script could not be found or is too old. Make sure itis in your PATH or set the PKGCONFIG environment variable to the fullpath to pkg-config.Alternatively, you may set the environment variables OPENSSLCFLAGSand OPENSSLLIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.To get pkg-config, see.See `config.log' for more detailspkg-config is available from the git repository at git://anongit.freedesktop.org/pkg-configSolution may be here.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |