Wget – command not found on mac – solution

I just tried to install the Nokogiri gem to scrape some content from a website (http://nokogiri.org/tutorials/installing_nokogiri.html). I followed the install instructions, but hit a problem when trying to install libiconv…basically, the nokogiri install instructions use the wget command as in :

wget http://ftp.gnu.org/pub/gnu/libicon.....

I had noticed several times before that using wget would return:

 command not found

on my mac, so this time I though I would document the alternative command [a pseudo solution] which is:

curl -O http://ftp.gnu.org/pub/gnu/libicon.....

This works fine just fine – so need to install wget- [Note that it’s an O not a zero].

Apparently wget is a free gnu package – so doing the install of wget is the true solution – it’s obtainable from here : http://www.gnu.org/software/wget/

Anyway – I’m going back to completing my nokogiri gem install. Watch for a post future about how my web content scraping adventure went.