Install Xcode
First, you will need to ensure that Xcode is installed, and you can install it via the App Store here https://apps.apple.com/au/app/xcode/id497799835?mt=12
1 |
xcode-select --install |
Installing Wget
Next, we need to get the latest copy of Wget. We will use curl for this command.
1 2 |
cd ~/Downloads curl -O https://ftp.gnu.org/gnu/wget/wget-latest.tar.gz |
We will extract the tar.gz
1 |
tar -zxvf wget-latest.tar.gz |
Change your directory to the wget folder that was extracted. Then configure it.
1 2 3 |
cd wget-1.20.3 ln -s /usr/local/opt/openssl /usr/local/ssl ./configure -with-ssl=openssl -with-libssl-prefix=/usr/local/ssl |
Now we need to make wget, and then install it.
1 2 |
make make install |
Let’s test it to make sure it works
1 |
wget https://ftp.gnu.org/gnu/wget/wget-latest.tar.gz |