This quick walkthrough will show you how to install wget on your Mac running OS X Lion (10.7)
Installing wget is just a series of Terminal commands, which are listed below. However, you will need to have Xcode installed in order to compile and then install wget. If you don’t have Xcode installed, we have a tutorial on how to install Xcode in OS X Lion.
- With Xcode installed, open a Terminal (found in your Applications -> Utilities folder). Make sure you’re connected to the Internet and then enter the command:
curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
This will download the wget package.
- Now issue the command:
tar -xzvf wget-1.13.4.tar.gz
which will open the wget package.
- Next up, enter the command:
- Almost done. Type:
- Time to install – type:
sudo make install
You’ll be prompted to enter your password. Do so.
- Now wget will install on your Mac.
- Done! You can now use wget on your Mac.
to confirm that wget did in fact install correctly. You should see the default wget response when issued without any parameters (see screenshot below).