{"id":19,"date":"2012-11-03T10:31:00","date_gmt":"2012-11-03T10:31:00","guid":{"rendered":"http:\/\/www.mirageglobe.com\/wp\/?p=19"},"modified":"2012-11-03T10:31:00","modified_gmt":"2012-11-03T10:31:00","slug":"installing-ruby-on-macos-x","status":"publish","type":"post","link":"https:\/\/pages.alldaycity.com\/mirageglobe\/installing-ruby-on-macos-x\/","title":{"rendered":"Installing Ruby on MacOS X"},"content":{"rendered":"<div dir=\"ltr\">Installing RVM for ruby is a better choice than using homebrew on MacOS X. You can install Ruby through terminal by running the following if you have homebrew installed. <a href=\"http:\/\/mirageglobe.blogspot.co.uk\/2012\/07\/homebrew-for-osx.html\">Homebrew<\/a> is an application manager for MacOS X. Some have opted for homebrew ruby + rbevn combo:<\/p>\n<blockquote><p><i>brew install ruby<\/i><\/p><\/blockquote>\n<p>Homebrew is good&#8230;..I just found the gem executions path is a bit confused with homebrew installed ruby. The alternative is to use ruby version manager (RVM) instead by:<\/p>\n<blockquote><p><i>curl -L https:\/\/get.rvm.io | bash -s stable &#8211;ruby<\/i><\/p><\/blockquote>\n<p>You may see common errors when you type any commands from a fresh install like &#8220;shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory. Just<\/p>\n<blockquote><p><i>cd \/<\/i>\u00a0<\/p><\/blockquote>\n<p>Once installed you can add in a few good gems for Ruby such as:<\/p>\n<ul>\n<li>Sinatra (Web framework for Ruby, which influenced Flask.py web framework for python)<\/li>\n<li>Thin (Web HTTP server for Ruby)<\/li>\n<li>Shotgun (Auto reload web apps for development. Good for Sinatra)<\/li>\n<li>HAML (html templating for ruby apps. similar to jinja)<\/li>\n<li>Passenger (Platform for Node \/ Ruby \/ Python Apps)<\/li>\n<\/ul>\n<p>For those interested in cross compatibility with Java  Ruby. try Jruby. You can install using RVM command:<\/p>\n<blockquote><p><i>rvm install jruby<\/i>\u00a0<\/p><\/blockquote>\n<p>Once you have installed ruby via RVM. You can install gems such as listed above by:<\/p>\n<blockquote><p><i>gem install [package]<\/i><\/p><\/blockquote>\n<p>\u00a0For those interested in running an app platform for nginx with passenger, try:<\/p>\n<blockquote><p><i>rvmsudo passenger-install-nginx-module\u00a0<\/i><\/p><\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Installing RVM for ruby is a better choice than using homebrew on MacOS X. You can install Ruby through terminal by running the following if you have homebrew installed. Homebrew is an application manager for MacOS X. Some have opted for homebrew ruby + rbevn combo: brew install ruby Homebrew is good&#8230;..I just found the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.alldaycity.com\/mirageglobe\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}