Now I am trying to update my ruby version from 1.8(system default) to 1.9.3.
After I install ruby 1.9.3:
==> Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p362.tar.gz
######################################################################## 100.0%
==> Patching
patching file missing/setproctitle.c
==> ./configure --prefix=/usr/local/Cellar/ruby/1.9.3-p362 --enable-shared --disable
==> make
==> make install
==> Caveats
NOTE: By default, gem installed binaries will be placed into:
/usr/local/Cellar/ruby/1.9.3-p362/bin
You may want to add this to your PATH.
==> Summary
But When I change my ruby version, I got this:
macmatoMac-Pro:1.9.3-p362 mac$ rvm use 1.9.3 --default
ruby-1.9.3-p327 is not installed.
To install do: 'rvm install ruby-1.9.3-p327'
What should I do? thanks 🙂
RVM knows nothing about the version of 1.9.3 in
/usr/local/Cellar/ruby. You can’t install a version of Ruby into an arbitrary location and expect RVM to inherit it or understand where it’s located, because you installed it outside RVM’s control. RVM is designed to manage its own sandboxed versions of Ruby usingrvm install some_ruby_version.You could change your path to point to the Ruby you installed, and use
rvm use systemto get RVM to step out of the way, but, at that point, you won’t have any of the added features that make RVM nice to have, such as gem-set support.Read through RVM’s documentation to understand how it works, especially how to install new versions of Ruby.