Wget on OS X Lion (10.7)

By nick | Hackintosh, Tech Support
9 Jan 2012

Being from the wonderful world of true unix environments, I love my standard set of tools.  Also being new to OS X, I was a little disappointed to see that there was no wget installed by default.  Sure there’s curl but that’s a whole set of new flags to use and my memory is limited!

Here’s a quick guide on how to download and compile wget for your box, alternatively if you’re lazy you can just download the zip file I’ve linked below and follow those instructions.

Compiling wget

Open “Terminal” in finder

curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.tar.gz

tar zxvf wget-1.13.tar.gz

cd wget-1.13

./configure –with-ssl=openssl

make

sudo cp src/wget /usr/bin

 

Or download and install my wget binary for lazy people ;)

Open “Terminal” in finder

curl -O http://www.elfnet.org/files/osx_wget.tar.gz

tar zxvf osx_wget.tar.gz

chmod +x wget

sudo mv wget /usr/bin

 

Leave a comment and let me know if this was useful!

 

7 Comments

  1. Phillip Wong says:

    Definitely useful, thanks for the build. Saves having to download xcode just to compile.

  2. donald says:

    the file osx_wget.tar.gz is unavailable per http://www.elfnet.org/2012/01/09/wget-os-lion-10-7/

    just thought you should know it’s a 404 right now

  3. Ringel says:

    Thank you!
    Yes, I’m one of the lazy ones :)

  4. Jim says:

    Well said. Thank you!

    Be careful copying and pasting ./configure –with-ssl=openssl
    as the dashes are hyphens here. Dash dash should be used.

  5. Brian says:

    Thanks a lot!

  6. Adam says:

    Thank you! Very easy.

Leave a Reply