Upgrade Ruby to the lastest version on Mac OSX with Homebrew

Upgrade Ruby to the lastest version on Mac OSX with Homebrew

keep in sync with the outside world

Recently when installing some gems, it popped out errors that telling the Ruby version is lower than required… I have to upgrade the shipped Ruby, version 2.0.0p648 (2015-12-16 revision 53162), on my MacBook. There are a few methods dealing with this, but I found the easiest way is using Homebrew.

Check current version of Ruby

Type following line in terminal:

ruby -v

It says ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16] on macOS Sierra, quite old 🤔.

Install Homebrew

Okay, if you haven’t used Homebrew before, just paste the following command into terminal to install it:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Get more information about Homebrew, please go to its official website: https://brew.sh.

Install Ruby with Homebrew


brew install ruby

One simple line is enough, Homebrew will install all the stuff you needed without any further configuration.

After ruby installation finished, just restart your terminal and check the version of Ruby with ruby -v, that will show you the latest stable version (for now, it’s ruby 2.5.2p104).


Frank Lin

Hey, there! This is Frank Lin (@flinhong), one of the 1.4 billion 🇨🇳. This 'inDev. Journal' site holds the exploration of my quirky thoughts and random adventures through life. Hope you enjoy reading and perusing my posts.


npm install, concerns for me



npm install, concerns for me

While learning Node.js, install packages is a commonly operation. However, as a newbie, I might install the packages not in the right way. So taking this note to refresh my mind on npm installs.

Host Jekyll Site on Google Firebase with free SSL



Host Jekyll Site on Google Firebase with free SSL

Firebase Hosting is a developer focused static web hosting provider that is super fast, secure and reliable. You can quickly and easily deploy your static websites to a global content-delivery network (CDN) with a single command.

TOC / 目录