Rails For Mac Os X



I've just gone to installed RoR on my snow leopard mac. And found the rails gem was already installed. Does it need updating? Does this get installed along with textmate?

  1. Rails For Mac Os X 10.8
  2. Rails For Mac Os X 10.7
  3. Rails For Mac Os X 10.13

This article explains why you should avoid using the version of Ruby bundled with Mac OS X and should instead install your own version of Ruby with RVM, the Ruby Version Manager.

Hands Off the System Ruby

  • I'm stuck trying to install rails on my mac. I have OS X 10.6.8 and I have confirmed that I have Ruby, version 1.8.7 I ran sudo gem update and sudo gem update -system to get the latest versions o.
  • Porting Kit is the new application which “ports” the game to your Mac. The video and download links in the slider are outdated and won’t work on OS X 10.11+. To fix/update it, install the game with the Porting Kit visit its page here. Or use the crosstie with the Crossover application.

Apple bundles the Ruby programming language with OS X. However, the main caveat for using the bundled version, called the system Ruby, is that Apple bundles Ruby for it’s own use. Therefore, it’s best not to make changes to the system Ruby.

You’ll know when you’re about to change the system Ruby when you need to prefix a gem installation with sudo, for example:

Another reason for not using the system Ruby is that it’s often several versions behind the latest stable version.

The Ruby Version Manager

A better alternative to using the system Ruby is to install Ruby with RVM, the Ruby Version Manager. RVM is a tool for installing different versions of Ruby itself. RVM has the following advantages:

  1. RVM enables you to install multiple versions of Ruby and allows you to change which version you want to use.
  2. RVM installs each version of Ruby in a hidden folder in your home folder so each version of Ruby you install doesn’t affect the system Ruby.
  3. Gems installed by RVM-managed versions of Ruby are installed within the hidden folder in your home folder containing that version of Ruby.
  4. You won’t need use sudo to install gems.
Rails for mac os x 10.10

To check that you’re currently using the system Ruby, open Terminal and type the following:

If you’re using the system Ruby, OS X will respond with:

You can check which version of Ruby OS X is using with:

Installing RVM and Ruby

The RVM install page has comprehensive instructions for installing RVM that work on Mac OS X. I’ll provide the steps I used here.

The first step is to install the mpapis public key. However, as the install page notes, you might need gpg. Mac OS X doesn’t ship with gpg so before installing the public key, you’ll need to install gpg. I installed gpg with Homebrew:

After you’ve installed gpg, you can install the mpapis public key:

Rails For Mac Os X 10.8

I've listed the mapis public key install command here for illustration. You should use the version on the RVM install page.

10.7

I chose to install RVM with the latest stable version of Ruby, which at the time was 2.2.0:

RailsMac

After the installation completes, close the Terminal window and open a new one to make sure that Terminal picks up any environment changes.

Using RVM

You can list the versions of Ruby available to RVM with rvm list:

The rvm use command selects a version of Ruby:

You can check that you’re using an RVM-managed version of Ruby with:

OS X now responds with:

Rails For Mac Os X 10.7

which tells us we’re using version 2.2.0 and that version 2.2.0 has been installed in my home folder away from the system Ruby. You can confirm this by asking Ruby itself with:

Rails For Mac Os X

Rails For Mac Os X 10.13

The RVM-managed version of Ruby responds with:

As I mentioned earlier, gems installed with RVM-managed versions of Ruby are located with the Ruby. You can check where gems will be installed with:

The following lines of output shows that gems will be installed in the folder XXX.

To find out where a particular gem is installed, use the gem which command. For example, gem which jekyll locates the Jekyll gem:

  • iOS
  • macOS
  • watchOS
  • tvOS
  • Swift
  • Man Pages
  • .NET Framework
  • ActionScript
  • Akka
  • Android
  • Angular
  • Ansible
  • Apache
  • Appcelerator Titanium
  • AppleScript
  • Arduino
  • Backbone
  • Bash
  • Boost
  • Bootstrap
  • Bourbon
  • Bourbon Neat
  • C
  • C++
  • CakePHP
  • Cappuccino
  • Chai
  • Chef
  • Clojure
  • CMake
  • Cocos2D
  • Cocos2D-X
  • CodeIgniter
  • CoffeeScript
  • ColdFusion
  • Common Lisp
  • Compass
  • Cordova
  • Corona
  • CouchDB
  • Craft
  • CSS
  • D3.js
  • Dart
  • Django
  • Docker
  • Doctrine ORM
  • Dojo Toolkit
  • Drupal
  • Elasticsearch
  • Elixir
  • Emacs Lisp
  • Ember.js
  • Emmet.io
  • Erlang
  • Express.js
  • Expression Engine
  • ExtJS
  • Flask
  • Font Awesome
  • Foundation
  • GLib
  • Go
  • Gradle
  • Grails
  • Groovy
  • Grunt
  • Gulp
  • Haml
  • Handlebars
  • Haskell
  • HTML
  • Ionic
  • Jasmine
  • Java SE
  • Java EE
  • JavaScript
  • Jekyll
  • Jinja
  • Joomla
  • jQuery
  • jQuery Mobile
  • jQuery UI
  • Julia
  • Knockout.js
  • Kobold2D
  • Laravel
  • LaTeX
  • Less
  • lodash
  • Lua
  • Marionette.js
  • Matplotlib
  • Meteor
  • Mocha
  • MomentJS
  • MongoDB
  • Mongoose
  • Mono
  • MooTools
  • MySQL
  • Nginx
  • Node.js
  • NumPy
  • OCaml
  • OpenCV
  • OpenGL
  • Pandas
  • Perl
  • Phalcon
  • PhoneGap
  • PHP
  • PHPUnit
  • Play Framework
  • Polymer.dart
  • PostgreSQL
  • Processing.org
  • Prototype
  • Pug
  • Puppet
  • Python
  • Qt
  • R
  • Racket
  • React
  • Redis
  • RequireJS
  • Ruby
  • Ruby on Rails
  • Rust
  • Sails.js
  • Sass
  • SaltStack
  • Scala
  • SciPy
  • Semantic UI
  • Sencha Touch
  • Sinon
  • Smarty
  • Sparrow
  • Spring Framework
  • SproutCore
  • SQLAlchemy
  • SQLite
  • Statamic
  • Stylus
  • Susy
  • SVG
  • Symfony
  • Tcl
  • Tornado
  • Twig
  • Twisted
  • TypeScript
  • TYPO3
  • Underscore.js
  • Unity 3D
  • Vagrant
  • Vim
  • VMware vSphere
  • Vue.js
  • WordPress
  • Xamarin
  • Xojo
  • XSLT
  • Yii
  • YUI
  • Zend Framework
  • Zepto.js