Subscribe / Unsubscribe Enewsletters | Login | Register

Pencil Banner

Learn Ruby and Ruby on Rails in OS X

Lucy Hattersley | July 6, 2016
Discover how to set up Rails, and program in Ruby on your Apple Mac. How to use Ruby to make a website.

If you want Rails set up alongside Ruby, then follow these steps:

  1. Open Terminal and enter ruby --version. You should see "ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin1".
  2. Check that you have sqlite3 installed. Enter sqlite3 --version. You should see "" followed by the installation date and hash code.
  3. Now enter sudo gem install rails. Gem is a package installer that comes with Ruby. It can take a while for Rails to be installed on your system (it took around half an hour on our test system), so let the Terminal window do its thing uninterrupted. In the end, you should see "33 gems installed".
  4. Enter rails --version to ensure that it's been setup correctly. You should see "Rails 4.2.6" (or later).

Rails version in OS X

Learn Ruby: The best courses

Now that you've checked Ruby and installed Rails, it's a good idea to see what you can do with them.

There are hundreds of great Ruby and Ruby on Rails courses. Here are just a few to get started with:

Source: Macworld 


Previous Page  1  2 

Sign up for CIO Asia eNewsletters.