From: Jeff Schwab Date: 2009-05-19T03:40:06+09:00 Subject: Re: Beginner Ruby Question Calvin wrote: > I just intstalled Ruby 1.9 on my mac with macports. The installation > was successful but when I type in ruby -v at the command prompt, Ruby > 1.8.6 shows up still. The latest Pickaxe book says I have to have /opt/ > local/bin in my path to add it... but don't really get how that's > supposed to work. You should be able to use your new ruby by its full path name: $ /opt/local/bin/ruby --version ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9] To make that the Head Ruby In Charge, try this: echo 'export PATH="/opt/local/bin:$PATH"' >> ~/.profile export PATH="/opt/local/bin:$PATH" hash -r You should then see the right ruby by default: $ which ruby /opt/local/bin/ruby