简体   繁体   中英

I want to change my OS X ruby version to 1.9 without using RVM

yeah, you heard me right! I want to nix RVM for the time being and just run off of a system-level installation of Ruby 1.9.3

In other words, I want to just upgrade the old 1.8.7 version of ruby that came with my Mountain Lion installation to 1.9.3.

How would i do this?

You can install it with homebrew

$ brew install ruby

But I don't really think that it's a good idea. RVM is perfect tool for managing ruby installations and gemsets.

I highly recommend rbenv .

Even if you installed ruby manually or via homebrew, you can simply symlink it into rbenv and it will just work (TM):

cd ~/.rbenv/versions
ln -s /usr/local/Cellar/ruby/1.9.3-p125 1.9.3-p125
rbenv rehash

That's because rbenv doesn't modify things like the shebang line. It does only what it needs to and doesn't do any funny business with your shell.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM