I’m on OS X, and when I needed to do something in Ruby I just bit the bullet and installed RVM. It’s a little more overhead, but I have complete control over my Ruby installation.
Oh, sure. If anyone’s to blame it’s Apple… not only do they ship an outdated version of Ruby, but it’s also installed in such a way that you have to use sudo to change anything, and then you have to use sudo to run anything, and… it’s just a mess.
you have to use sudo to change anything, and then you have to use sudo to run anything, and… it’s just a mess
I think your ruby environment is misconfigured. Are you using RVM? I'd be seriously skeptical of anything that requires you to continually run as root, which is why I think you have something set up wrong (possibly from installing it as root in the first place). I'm on Mac OSX and have nothing close to that pain.
In my case it was the developer tools (certain Sublime plugins, TextMate, and I think XCode too, but don't remember) for some reason sometimes used the system ruby no matter how I changed the environment.
I think they must have hard coded /usr/bin/ruby somewhere internally, so I just used the big hammer and relinked it to rvm-auto-ruby and all was happy.
I wouldn't do this on Rails server for example, RVM works fine in that case. Or especially a server where you using Apple's Blog/Wiki, or any of Apple's other built in services, etc. I think they use that ruby, but am not positive about that.
16
u/[deleted] Feb 24 '13
I hope now that 2.0.0 is out, Apple are going to upgrade the OS X Ruby from 1.8.7. It really sucks that they are so behind on releases.