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 ars technica

  • Mocked Trump Mobile yanks coverage map that ignored Trump renaming Gulf of Mexico
  • Apple’s Craig Federighi on the long road to the iPad’s Mac-like multitasking
  • New Apple study challenges whether AI models truly “reason” through problems
  • Apple details the end of Intel Mac support and a phaseout for Rosetta 2
  • Apple tiptoes with modest AI updates while rivals race ahead

RSS mac surfer

Donate

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

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