Replace ruby with a link to ruby1.9, safe?

macos, ruby

Solution

I wouldn't delete it. Personally, I downloaded ruby's source and compiled/installed it under the /opt directory. Then I edited my path so that /opt/bin/ruby (irb and gem as well) had higher precedence than the system default. This way you can keep the system default and the newest version at the same time. Plus, if Apple ever does update their MacRuby version, you don't have to worry about losing anything or getting down-graded.

Problem

Would it be safe to delete `ruby` from my mac (the version that came preinstalled), and replace it with a link to `ruby1.9`, and do the same with `irb` and `gem`? Is there anything specifically that might be an issue?

Original source