Tag Archives: wget

wget for Mac

I’m working on a Google Chrome extension to allow users to check the URL they are being forwarded to when they click on shortened URLs. I wanted to make sure I’m parsing responses and forwards properly, so wget came to mind. I’ve used wget a few times on Linux, but I’m doing my development on my Mac, so I compiled wget for my Mac.

Download

  1. wget-1.14.tar.gz
    • SHA-1 of wget-1.14.tar.gz: fedb008d414b87e44962e5e17671230aebe88189
    • Signature: wget-1.14.tar.gz.sig
    • SHA-1 of the wget executable: 062e17849d46cecc3d1e6d4a42b88e7eba16d96a
  2. Open the Terminal and navigate to the downloaded archive
  3. Extract the files by running tar xzf wget-1.14.tar.gz
  4. Login with an account with Administrator privileges
  5. Copy /bin/wget to /usr/local/bin
  6. Copy /man/wget.1 to /usr/local/share/man/man1
  7. Make sure all users have execute/read access to these files

Compile

Note: You must have Xcode installed.

  1. Download the wget source (wget-1.14.tar.gz) from http://ftp.gnu.org/gnu/wget/
  2. Open a terminal window and browse to the downloaded archive
  3. Extract the archive using tar xzf wget-1.14.tar.gz
  4. Open the wget-1.14 directory
  5. Run ./configure --with-ssl=openssl
    If you have GNUTLS installed, you can omit “–with-ssl=openssl”
  6. Run make
  7. You will have the wget binary in the /src directory and the man page in the /doc directory
  8. Copy /src/wget to /usr/local/bin
  9. Copy /doc/wget.1 to /usr/local/share/man/man1
  10. Make sure all users have execute/read access to these files