{"id":298,"date":"2011-03-20T15:58:23","date_gmt":"2011-03-20T19:58:23","guid":{"rendered":"http:\/\/www.peteonsoftware.com\/?p=298"},"modified":"2014-05-20T09:47:04","modified_gmt":"2014-05-20T13:47:04","slug":"node-js-build-from-source-failed","status":"publish","type":"post","link":"https:\/\/www.peteonsoftware.com\/index.php\/2011\/03\/20\/node-js-build-from-source-failed\/","title":{"rendered":"Node.js Build From Source Failed"},"content":{"rendered":"<p>I was attempting to move on to another of my <a href=\"https:\/\/www.peteonsoftware.com\/index.php\/2010\/12\/31\/2011-technology-resolutions\/\">2011 Technology Resolutions<\/a> and start working with Node.js.  I have already watched several of the free <a href=\"http:\/\/nodetuts.com\/\">Node Tuts<\/a> screencasts and also messed around with Node on someone else&#8217;s machine.  Now I wanted to get down and dirty with it myself.  As I got the source from Github, I followed the <a href=\"http:\/\/github.com\/joyent\/node\/wiki\/Installation\">installation instructions for the Mac<\/a> but got the following error:<\/p>\n<pre>\r\nBuild failed:  -> task failed (err #1): \r\n\t{task: cxx platform_darwin.cc -> platform_darwin_4.o}\r\n<\/pre>\n<p>Well, crap.  It is bad enough that getting Node up and running is still pretty painful, but now I get this very cryptic (to me) error message.  The great news is that I used my Google-Fu to find out that the problem was that I had gotten the master branch of the source and that was just not going to work.  So, I got the latest branch (currently the v0.4 branch) and followed the installation instruction steps again.  This time it was a win.<\/p>\n<p>Incidentally, I also could have just used <a href=\"https:\/\/github.com\/mxcl\/homebrew\">Homebrew<\/a> and installed it with the simple command:<\/p>\n<pre>\r\nbrew install node\r\n<\/pre>\n<p>Next time, then \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was attempting to move on to another of my 2011 Technology Resolutions and start working with Node.js. I have already watched several of the free Node Tuts screencasts and also messed around with Node &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,57],"tags":[114,116],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-goals","category-node-js","tag-goals","tag-node-js"],"_links":{"self":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":0,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}