From: Mitchell Gould Date: 2010-08-17T19:59:47+09:00 Subject: Re: Intstalled Ruby 1.8.7 but still getting ruby -v => 1.8.6 Brian Candler wrote: > Mitchell Gould wrote: >> I have followed the instructions to install ruby 1.8.7. > > Which instructions? What did you do? On what platform? The question > as-is is missing important information. I followed these instructions that were posted on this forum. http://www.ruby-forum.com/topic/154868 > >> However when I run the command >> >> ruby -v >> >> I get >> >> ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0] > > Then I can guess you're on a Mac, at least. > >> Why is that? > > "which ruby" will tell you where it found it. Presumably your other > installation is either not in $PATH or is later in $PATH; or it was > installed under a different name (e.g. "ruby187" instead of "ruby"). > >> Also do I have to tell my Rails application to use 1.8.7 and if so how >> do I do this? > > You will probably need to reinstall all your gems, including rails, > using 1.8.7 so they will go in 1.8.7's gems directory. If you build ruby > from source, then you will likely need to build rubygems itself from > source first. -- Posted via http://www.ruby-forum.com/.