From: Xeno Campanoli / Eskimo North and Gmail Date: 2010-05-01T05:36:08+09:00 Subject: Re: Setting to Ruby 1.9 in Ubuntu... Jason Roelofs wrote: root@rockhopper:~# gem install rvm ******************************************************************************** In order to setup rvm for your user's environment you must now run rvm-install. rvm-install will be found in your current gems bin directory corresponding to where the gem was installed. rvm-install will install the scripts to your user account and append itself to your profiles in order to inject the proper rvm functions into your shell so that you can manage multiple rubies. ******************************************************************************** Successfully installed rvm-0.1.27 1 gem installed Installing ri documentation for rvm-0.1.27... Installing RDoc documentation for rvm-0.1.27... root@rockhopper:~# rvm install 1.9.1 No command 'rvm' found, but there are 20 similar ones rvm: command not found root@rockhopper:~# which rvm root@rockhopper:~# > On Apr 30, 2010, at 3:57 PM, Walton Hoops wrote: > >> On 4/30/2010 1:36 PM, Xeno Campanoli / Eskimo North and Gmail wrote: >>> I tried installing a bunch of ruby 1.9 stuff on my Ubuntu laptop last >>> night, but my default ruby is still 1.8.7. Anybody know a regular >>> method for setting to 1.9 on Ubuntu? Perhaps this is an Ubuntu >>> question, but presumably the best way is not always the Ubuntu way...??? >> The Ubuntu way is to run 'sudo update-alternatives --config ruby' and >> 'sudo update-alternatives --config rubygems', or instead of calling Ruby >> scripts with 'ruby', call them with 'ruby1.9' when you want them run in 1.9. >> >> Another solution that is available is Ruby Version Manager (RVM). I've >> never used RVM, so I can't say anything for or against it. >> http://rvm.beginrescueend.com/ >> > > Forget Ubuntu's ruby completely. Use RVM, you will save yourself TONS of headache. It's really easy: > > sudo gem install rvm > rvm-install (and follow instructions for .bashrc settings) > > rvm install 1.9.1 > rvm use 1.9.1 --default > > Now you're completely in the RVM system (which is maintained in ~/.rvm by default) and can trivially switch between a myriad of Ruby implementation. > > Jason > > > > -- "It's the preponderance, stupid!" - Professor Stephen Schneider, IPCC member