From: Calvin Date: 2009-05-19T05:25:15+09:00 Subject: Re: Beginner Ruby Question On May 18, 11:36 am, Jeff Schwab wrote: > 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 I tried it out but I am having trouble when I type in: echo 'export PATH="/opt/local/bin:$PATH"' >> ~/.profile nothing happens if I type in: echo 'export PATH="/opt/local/bin:$PATH"' i get: export PATH="/opt/local/bin:$PATH" on the terminal screen and when i type in: hash -r the terminal says -r isn't valid Would you be able to break things down into simpler steps or describe what you type in and in what order... i know you already kinda did that but I am new to using the terminal and would appreciate it alot. Thanks again for your time... sorry for bothering you about this stuff but hivelogic.com is down today for some reason.