Installing wget on Mac OS X

Wget is a great command line  for grabbing things from the web, but it doesn’t ship with macs. So if you want to install it here are a few steps:

1. download the source file: http://ftp.gnu.org/pub/gnu/wget/wget-1.11.tar.gz
2. compile and install it:

tar -zxvf wget-1.11.tar.gz
cd wget-1.11/
./configure
make
sudo make install

Now the binary file is located in /usr/local/bin/. If you use bash as your default shell then you can add:

PATH=$PATH:/usr/local/bin; export PATH

in your .bash_profile.

Or if you want, you can do a symbolic link to have it in /usr/bin/:

sudo ln -s /usr/local/bin/wget /usr/bin/wget

That’s all and … happy downloading.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

I was all psyched to make this. Unfortunately something else doesn’t ship with Leopard… gcc!

Thanks

You do have to install XCode before the above will work.

Superb

Thanks!

Umm, why don’t you use ‘curl’ instead? It does ship with Mac OS X …

D.

maybe because I am familiar with wget … but yes, curl is the other option.

Leave a comment

(required)

(required)