{"id":291,"date":"2013-08-24T15:48:31","date_gmt":"2013-08-24T14:48:31","guid":{"rendered":"http:\/\/www.psinke.nl\/wordpress\/?p=291"},"modified":"2014-11-12T17:51:33","modified_gmt":"2014-11-12T16:51:33","slug":"enabling-wget-in-os-x","status":"publish","type":"post","link":"https:\/\/www.psinke.nl\/blog\/enabling-wget-in-os-x\/","title":{"rendered":"Enabling wget in OS X"},"content":{"rendered":"<div class=\"afa2b3b851443650502c43e85c746c1f\" data-index=\"1\" style=\"float: none; margin:0px;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-4223201538046844\";\r\n\/* standaardblok *\/\r\ngoogle_ad_slot = \"9522527129\";\r\ngoogle_ad_width = 320;\r\ngoogle_ad_height = 50;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>Although Mac OS X has a lot of UNIX commands, wget is not one of them. The alternative command curl is vey powerful, but many UNIX scripts rely on wget. Enabling wget in OS X is quite straightforward.<\/p>\n<h3>Enabling wget in OS X.<\/h3>\n<p>On <a title=\"Andrew's Den\" href=\"http:\/\/www.merenbach.com\/software\/wget\/index.html.en.gz\" target=\"_blank\">Andrew Merenbach&#8217;s site is<\/a> an OS X package for <em>wget<\/em>, download it here:\u00a0<a href=\"http:\/\/www.merenbach.com\/software\/wget\/wget-1.12-pkg.zip\">Download<\/a><\/p>\n<p>Install the package and you&#8217;re all set and done. When typing <em>wget<\/em> in your terminal, this is the result:<\/p>\n<pre>iMac-van-Patrick:~ patricksinke$ <strong>wget<\/strong>\r\nwget: missing URL\r\nUsage: wget [OPTION]... [URL]...<\/pre>\n<pre>Try `wget --help' for more options.<\/pre>\n<h3>Alternative method<\/h3>\n<p>It&#8217;s also possible to build the binary yourself:<\/p>\n<p>1) download and install XCode from the App Store. It&#8217;s free, although quite bulky (1.5GB).<\/p>\n<p>2) Start XCode. Go to Menu -&gt; Preferences -&gt; Tab Downloads.<\/p>\n<p>3) Install Command Line Tools.<\/p>\n<p>4) Execute on the Terminal:<\/p>\n<pre>curl -O http:\/\/ftp.gnu.org\/gnu\/wget\/wget-1.14.tar.gz\r\n tar xvzf wget-1.14.tar.gz\r\n cd wget-1.14\r\n .\/configure --with-ssl=openssl\r\n make\r\n sudo make install<\/pre>\n<p>For unknown reasons, this didn&#8217;t work for me; I got the following error:<\/p>\n<pre>configure: error: --with-ssl was given, but GNUTLS is not available.\r\n\r\nMaybe some other non-installed libraries are required.<\/pre>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Although Mac OS X has a lot of UNIX commands, wget is not one of them. The alternative command curl is vey powerful, but many UNIX scripts rely on wget. Enabling wget in OS X is quite straightforward. Enabling wget in OS X. On Andrew Merenbach&#8217;s site is an OS X package for wget, download&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,121],"tags":[284,252,13,51,57,198,282,283],"class_list":["post-291","post","type-post","status-publish","format-standard","hentry","category-apple-blog","category-tips-and-tricks","tag-command-line-tools","tag-curl","tag-os-x","tag-osx","tag-terminal","tag-unix","tag-wget","tag-xcode"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/comments?post=291"}],"version-history":[{"count":1,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/291\/revisions"}],"predecessor-version":[{"id":400,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/291\/revisions\/400"}],"wp:attachment":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/categories?post=291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/tags?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}