You've successfully subscribed to Nicholas Workshop
Great! Next, complete checkout for full access to Nicholas Workshop
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.

Ruby On Mac OSX

Nicholas Wong
Nicholas Wong

In Mac, Ruby is preinstalled. You can open Terminal and input the followings to view the version of Ruby installed in your Mac

ruby -v  

Update Ruby. You might want to update your Ruby, however there is no installer for Ruby like Windows. Instead, we can use MacPort.

Step 1. Install MacPort. You can download from their website: or DMG Image of Version 1.9.1 for Snow Leopard

Step 2. Open “Terminal” and input command:

sudo port  

Step 3. MacPort should be started after inputting your password, then input command:

install ruby  

It is easy, isn’t it? You can check what you have installed, you can input this command in MacPort:


Nicholas Wong

Fullstack software engineer with strong background in computer science and extensive experience in software engineering and architecture. Studied in NYU, worked in Yahoo, Rakuten and Manulife.