{"id":1058,"date":"2012-03-04T09:46:16","date_gmt":"2012-03-04T14:46:16","guid":{"rendered":"http:\/\/yuguangzhang.com\/blog\/?p=1058"},"modified":"2012-03-04T10:28:23","modified_gmt":"2012-03-04T15:28:23","slug":"installing-turnkey-rails-on-vmware","status":"publish","type":"post","link":"http:\/\/yuguangzhang.com\/blog\/installing-turnkey-rails-on-vmware\/","title":{"rendered":"Installing Turnkey Rails on VMWare"},"content":{"rendered":"<p>While working on the new Fiddle Salad, which required several languages with native Ruby compilers, I downloaded and installed Ruby on my Windows machine. Ruby by itself wasn&#8217;t a problem, but when I run <em>gem install rails<\/em>, some kinks come up, like missing a lib folder in a package. Then I moved on to installing therubyracer, which I guess is an optimizer, but it wouldn&#8217;t compile with <a href=\"http:\/\/www.mingw.org\/\">mingw<\/a> on Windows. After that, when initializing a rails app, it got stuck on <a href=\"http:\/\/gembundler.com\/\">bundler<\/a>, which I used to install several packages. Like one user said on stackoverflow, <a href=\"http:\/\/stackoverflow.com\/questions\/55574\/learning-ruby-on-rails\">Ruby isn&#8217;t meant to run on Windows<\/a>.<\/p>\n<p>So this morning I got ruby set up pretty quick. Just follow these steps:<\/p>\n<ol>\n<li>Download turnkey rails\u00a0http:\/\/www.turnkeylinux.org\/rails<\/li>\n<li>Install on VMWare Player<\/li>\n<li>Set Networking to Bridged<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1059\" title=\"screenshot.4\" src=\"http:\/\/yuguangzhang.com\/blog\/wp-content\/uploads\/2012\/03\/screenshot.4.png\" alt=\"\" width=\"666\" height=\"577\" srcset=\"http:\/\/yuguangzhang.com\/blog\/wp-content\/uploads\/2012\/03\/screenshot.4.png 666w, http:\/\/yuguangzhang.com\/blog\/wp-content\/uploads\/2012\/03\/screenshot.4-300x259.png 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/li>\n<li>Connect using SSH to the address shown after installation<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1060\" title=\"screenshot.5\" src=\"http:\/\/yuguangzhang.com\/blog\/wp-content\/uploads\/2012\/03\/screenshot.5.png\" alt=\"\" width=\"791\" height=\"502\" srcset=\"http:\/\/yuguangzhang.com\/blog\/wp-content\/uploads\/2012\/03\/screenshot.5.png 791w, http:\/\/yuguangzhang.com\/blog\/wp-content\/uploads\/2012\/03\/screenshot.5-300x190.png 300w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/li>\n<\/ol>\n<p>That last part took a bit of searching on Google for me, because I expected a full Ubuntu installation, with GUI. But the download was only 253Mb. As I thought more about it, it made sense. I was glad how easy it was to set it up in a virtual machine. Once the VM was installed, I installed Rails with <em>gem install rails<\/em> and <a href=\"http:\/\/www.turnkeylinux.org\/forum\/general\/20090614\/step-step-installing-vmwaretools-make-gcc-etc-fresh-install-lamp-200902-hardy\">set up the build tools<\/a>.<\/p>\n<p><strong>\u00a0Update:<\/strong>\u00a0therubyracer is the Google V8 embedded within Ruby. There is a list of other engines here: https:\/\/github.com\/sstephenson\/execjs<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While working on the new Fiddle Salad, which required several languages with native Ruby compilers, I downloaded and installed Ruby on my Windows machine. Ruby by itself wasn&#8217;t a problem, but when I run gem install rails, some kinks come up, like missing a lib folder in a package. Then I moved on to installing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[7],"tags":[163,164,165],"class_list":["post-1058","post","type-post","status-publish","format-standard","hentry","category-windows","tag-rails","tag-turnkey-rails","tag-vmware"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/posts\/1058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/comments?post=1058"}],"version-history":[{"count":0,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/posts\/1058\/revisions"}],"wp:attachment":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/media?parent=1058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/categories?post=1058"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/tags?post=1058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}