{"id":1145,"date":"2011-01-26T23:20:59","date_gmt":"2011-01-27T04:20:59","guid":{"rendered":"http:\/\/www.wwco.com\/~wls\/blog\/?p=1145"},"modified":"2011-01-26T23:20:59","modified_gmt":"2011-01-27T04:20:59","slug":"installing-node-js-on-os-x-10-6","status":"publish","type":"post","link":"https:\/\/wls.wwco.com\/blog\/2011\/01\/26\/installing-node-js-on-os-x-10-6\/","title":{"rendered":"Installing node.JS on OS X 10.6"},"content":{"rendered":"<p>When I went to go install a copy of <a href=\"http:\/\/nodejs.org\/\">node.JS<\/a> on OS X 10.6, I ran into a little snag.  Using <a href=\"http:\/\/git-scm.com\/\">git<\/a>, or more specifically <a href=\"http:\/\/www.git-tower.com\/\">Tower<\/a>, I was able to pull <a href=\"https:\/\/github.com\/ry\/node\">node right from github<\/a>.<\/p>\n<p>The steps to install node are as simple as:<br \/>\n<code>$ <strong>.\/configure<\/strong><br \/>\n$ <strong>make<\/strong><br \/>\n$ <strong>sudo make install<\/strong><\/code><\/p>\n<p>However, I was having problems at the <code>.\/configure<\/code> stage.  It was reporting:<\/p>\n<blockquote><p>Checking for openssl                     : not found<\/p><\/blockquote>\n<p>This resulted in a link error if one tries the make command.<\/p>\n<p>Many of the web resources suggest installing <code>libssl-dev<\/code>, although being on OS X (and not Ubuntu) and having openssl already installed on my system, it turns out it was the <em>detection mechanism<\/em> and not a missing library that was the problem.<\/p>\n<p>What I needed was the <code>pkg-config<\/code> package, because if it isn&#8217;t around, the configure step simply skips the check reporting openssl isn&#8217;t present.<\/p>\n<p>To install it, I used <a href=\"http:\/\/mxcl.github.com\/homebrew\/\">Homebrew<\/a>, a fantastic modern package manager that works exceptionally well with OS X.<\/p>\n<p>All I needed to do was this step, and then the commands above.<br \/>\n<code>$ <STRONG>brew install pkg-config<\/STRONG><\/code><\/p>\n<p>Node then worked like a champ.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having problems installing Node.JS because of missing OpenSSL problems?  Here&#8217;s the solution to that problem for OS X.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65,67,128,133,81],"tags":[249,307,308,480,481,519,572,577,684,685,697,699,740,741,854,855,894,948],"class_list":["post-1145","post","type-post","status-publish","format-standard","hentry","category-hack","category-how-to","category-javascript","category-node-js","category-os-x","tag-brew","tag-config","tag-configure","tag-git","tag-github","tag-homebrew","tag-javascript-2","tag-js","tag-node","tag-node-js","tag-open","tag-openssl","tag-pkg","tag-pkg-config","tag-server","tag-server-side","tag-ssl","tag-tower"],"_links":{"self":[{"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/posts\/1145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/comments?post=1145"}],"version-history":[{"count":0,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/posts\/1145\/revisions"}],"wp:attachment":[{"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/media?parent=1145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/categories?post=1145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wls.wwco.com\/blog\/wp-json\/wp\/v2\/tags?post=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}