4

I'm working on a Unix platform on VNC viewer. Now I want to upgrade to Ruby version 1.9.2.

I don't have root permissions. So is there any way by which I could install Ruby 1.9.2?

1 Answer 1

5

I would suggest to use rbenv. It gives you a Ruby installation for your own user, so you don't mess with the system Ruby.

You can install it by running the curl or wget command from the rbenv-installer script.

Follow the instructions to modify your shell config scripts.

Then run:

rbenv install 3.0.0

Replace 3.0.0 with the version you need to install.

And to use it globally:

rbenv global 3.0.0

Previously, I would have recommended RVM, but I switched to rbenv for it breaking less and making more sense to me.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .