Config Router

  • Google Sheets
  • CCNA Online training
    • CCNA
  • CISCO Lab Guides
    • CCNA Security Lab Manual With Solutions
    • CCNP Route Lab Manual with Solutions
    • CCNP Switch Lab Manual with Solutions
  • Juniper
  • Linux
  • DevOps Tutorials
  • Python Array
You are here: Home / How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?

How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?

August 1, 2021 by James Palmer

Open your terminal and run
curl -sSL https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable

When this is complete, you need to restart your terminal for the rvm command to work.
Now, run rvm list known
This shows the list of versions of the ruby.
Now, run rvm install ruby@latest to get the latest ruby version.
If you type ruby -v in the terminal, you should see ruby X.X.X.
If it still shows you ruby 2.0., run rvm use ruby-X.X.X –default.
Prerequisites for windows 10:

C compiler. You can use http://www.mingw.org/
make command available otherwise it will complain that “bash: make: command not found”. You can install it by running mingw-get install msys-make
Add “C:MinGWmsys1.0bin” and “C:MinGWbin” to your path enviroment variable

Brew only solution
Update:
From the comments (kudos to Maksim Luzik), I haven’t tested but seems like a more elegant solution:

After installing ruby through brew, run following command to update the links to the latest ruby installation: brew link –overwrite ruby

Original answer:
Late to the party, but using brew is enough. It’s not necessary to install rvm and for me it just complicated things.
By brew install ruby you’re actually installing the latest (currently v2.4.0). However, your path finds 2.0.0 first. To avoid this just change precedence (source). I did this by changing ~/.profile and setting:
export PATH=/usr/local/bin:$PATH
After this I found that bundler gem was still using version 2.0.0, just install it again: gem install bundler

Related

Filed Under: Uncategorized

Recent Posts

  • How do I give user access to Jenkins?
  • What is docker volume command?
  • What is the date format in Unix?
  • What is the difference between ARG and ENV Docker?
  • What is rsync command Linux?
  • How to Add Music to Snapchat 2021 Android? | How to Search, Add, Share Songs on Snapchat Story?
  • How to Enable Snapchat Notifications for Android & iPhone? | Steps to Turn on Snapchat Bitmoji Notification
  • Easy Methods to Fix Snapchat Camera Not Working Black Screen Issue | Reasons & Troubleshooting Tips to Solve Snapchat Camera Problems
  • Detailed Procedure for How to Update Snapchat on iOS 14 for Free
  • What is Snapchat Spotlight Feature? How to Make a Spotlight on Snapchat?
  • Snapchat Hack Tutorial 2021: Can I hack a Snapchat Account without them knowing?

Copyright © 2025 · News Pro Theme on Genesis Framework · WordPress · Log in