{"id":681,"date":"2008-06-17T15:39:29","date_gmt":"2008-06-17T14:39:29","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=681"},"modified":"2008-06-17T15:39:29","modified_gmt":"2008-06-17T14:39:29","slug":"installing-sproutcore-on-ubuntu-on-virtualbox","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/681-installing-sproutcore-on-ubuntu-on-virtualbox.html","title":{"rendered":"Installing SproutCore on Ubuntu on VirtualBox"},"content":{"rendered":"<p>If you check out the <a href=\"http:\/\/www.sproutcore.com\/download\/\" target=\"_blank\">installation instructions for SproutCore<\/a> you will notice that Windows developers are not really catered for (though I am sure it can be done). I also noticed some Windows issues in the <a href=\"http:\/\/groups.google.com\/group\/sproutcore\/browse_thread\/thread\/9bd7349a6cb6dcdf#\" target=\"_blank\">Sproutcore forum<\/a>. More evidence of the <a href=\"http:\/\/www.itwriting.com\/blog\/?p=650\" target=\"_blank\">Windows\/Unix disconnect<\/a>.<\/p>\n<p>Having been <a href=\"http:\/\/www.itwriting.com\/blog\/?p=660\">impressed by VirtualBox<\/a> recently, I figured it might be easier to use VirtualBox and <a href=\"http:\/\/www.ubuntu.com\" target=\"_blank\">Ubuntu<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/sproutcore.gif\" alt=\"\" \/><\/p>\n<p>Here\u2019s how it went. I ran up a new VirtualBox image and installed Ubuntu. Very easy; just point VirtualBox to the Ubuntu install iso. This worked, except that Ubuntu did not recognize the video driver and defaulted to 800 x 600 resolution. Solution: install dkms in Synaptic (or using apt-get); then install the VirtualBox Linux Additions. That gave me 1024 x 768, which is good enough.<\/p>\n<p>Next, you need to install Ruby (developer version) (use sudo or root)<\/p>\n<blockquote><p>apt-get install ruby<\/p>\n<p>apt-get install rubygems<\/p>\n<p>apt-get install ruby1.8-dev<\/p><\/blockquote>\n<p>and some build tools as one of the SproutCore dependencies (hpricot) calls make when installed:<\/p>\n<blockquote><p>apt-get install build-essential<\/p><\/blockquote>\n<p>I thought that would be enough, but my first go at installing SproutCore failed, apparently because gem is not on the path. Although it seemed to work, I got \u201ccommand not found\u201d when running sproutcore. So:<\/p>\n<blockquote><p>export PATH=$PATH:\/var\/lib\/gems\/1.8\/bin<\/p><\/blockquote>\n<p>Now you can install SproutCore:<\/p>\n<blockquote><p>gem install sproutcore<\/p><\/blockquote>\n<p>Several components, such as hpricot, ask which version to install. I chose the variant designated (ruby).<\/p>\n<p>After that, the <a href=\"http:\/\/www.sproutcore.com\/documentation\/hello-world-tutorial\/\" target=\"_blank\">Hello World tutorial<\/a> ran exactly as expected.<\/p>\n<p>By the way, although this example makes it look as if SproutCore is a dynamic server framework, it is not. The usual way to deploy a SproutCore application is as static files; the server arrangement is for debugging.<\/p>\n<p><strong>Note<\/strong>: the command above only amends the path for the current session. To make it permanent, I added the following to lines to the end of \/etc\/profile (needs root permissions to edit)*:<\/p>\n<blockquote><p>PATH=$PATH:\/var\/lib\/gems\/1.8\/bin<br \/>\nexport PATH<\/p><\/blockquote>\n<p>*See <a href=\"http:\/\/www.itwriting.com\/blog\/681-installing-sproutcore-on-ubuntu-on-virtualbox.html#comment-103847\">comment below<\/a> for an even better suggestion.<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:711c589b-1831-44d5-9cf7-709bcb4613f8\" class=\"wlWriterSmartContent\" style=\"padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati tags: <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/virtualbox\">virtualbox<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/sproutcore\">sproutcore<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/ubuntu\">ubuntu<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/linux\">linux<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/windows\">windows<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you check out the installation instructions for SproutCore you will notice that Windows developers are not really catered for (though I am sure it can be done). I also noticed some Windows issues in the Sproutcore forum. More evidence of the Windows\/Unix disconnect. Having been impressed by VirtualBox recently, I figured it might be &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/681-installing-sproutcore-on-ubuntu-on-virtualbox.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing SproutCore on Ubuntu on VirtualBox<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52,62,96,97],"tags":[],"class_list":["post-681","post","type-post","status-publish","format-standard","hentry","category-linux","category-open-source","category-web-authoring","category-windows"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=681"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/681\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}