Uncategorized

Put wget On OS X

To install wget on a Mac, first make sure you have Xcode installed. Then, create a place to do your installation from:

mkdir ~/Desktop/wgetinstall; cd ~/Desktop/wgetinstall

Then, curl it down from the gnu.org ftp servers:

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

Next, extract the tar file:

tar xvf ~/Desktop/wgetinstall/wget-1.14.tar.gz

Then cd into the wget directory:

cd wget-1.14

And then let’s config:

./configure --with-ssl=openssl

Then a standard make:

make

Then a typical make install:

make install

Now let’s make sure we know where it went:

type -a wget

And now let’s test

wget —version

And to test downloading:

wget http://www.apple.com

Then, clean up after your installer:

rm -rf ~/Desktop/wgetinstall