Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Upgrading to Ruby 2 on OSX 10.8 Mountain Lion

September 29, 2013 5 Comments

An older version of Ruby ships with OSX by default, the version is 1.8.7 which is now officially retired by its developers. ruby

To upgrade to the latest stable version of Ruby, you going to need Xcode and Homebrew installed first, Xcode does the heavy lifting for compiling programs and Homebrew works as the package manager making sure any apps it installs plays nicely with the existing operating system

Get Xcode and Homebrew cooking

Install Ruby

brew install ruby

Add latest Ruby to the shell path

With 2 versions of Ruby now installed you need to prioritise the latest one in your shell path, in either ~/.bash_profile or ~/.bashrc add in

/usr/local/opt/ruby/bin

Do the path line looks something like this

export PATH="/usr/local/opt/ruby/bin:$PATH"

Reload the shell

source  ~/.bash_profile

Check Ruby

ruby --version
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]

To update Ruby, just run:

gem update --system

That’s it, the latest version is now installed whilst the older version is still on the OS the path points to the newer version and any gems will need to be reinstalled.

Cats: Open Source, Tech

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS feed: ars technica ars technica

  • Apple reportedly building server packed with M-series Ultra chips for AI
  • macOS 27 Golden Gate: The Ars Technica review
  • OpenAI stuck fighting Musk antitrust suit after Apple finds a way out
  • Apple releases iOS 27, macOS Golden Gate 27 with Siri AI and Liquid Glass refinements
  • Apple's long-rumored foldable becomes reality with the $2,000 iPhone Duo

RSS feed: mac surfer mac surfer

  • iPhone 18 Pro Shoots Apple TV's Friday Night Baseball
  • Apple Watch Series 12 and Ultra 4 Reviews Land
  • iOS 27 Freeze Bug Locks Up iPhones
  • iOS 27.2 Beta Brings Siri AI to New Languages
  • iOS 27.2 Beta Redesigns Apple Health App

Donate

Copyright © 2026· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2026 · gee on Genesis Framework · WordPress · Log in