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.

Advertisements

One thought on “Wget – command not found on mac – solution

Please leave a comment - any questions or feedback welcome.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s