On Apr 4, 2009, at 12:32 PM, Zayd Connor wrote:

> Ben Lovell wrote:
>> Great. You'll find macports pretty handy for installing many things.
>
> Cool. One thing I'm noticing is when I type /usr/bin/ruby -v it is
> giving me version 1.8, when I'm compiling my code how do I know which
> version of ruby I'm using? 1.9 is installed in my /opt/local/lib

at the prompt, type which ruby <return> and that will give you the  
path to the executable

also, you might want to check your PATH env variable to make sure it's  
finding the right one first, although I think OSX has a mechanism for  
switching that's kind of a half baked version of the Linux  
alternatives mechanism for switching between various versions of  
"stuff". Although, in fairness this seems to work quite well for java  
on the mac. Anyway, check your path with either echo $PATH of env  
commands and see what it says. You may have to force it by modifying  
the path in .bash_profile in your home directory (assuming bash) or  
some other file that's modifying your path variable. Hope that helps.
>
> directory.
> Should I uninstall 1.8?
>
> Thanks
> -- 
> Posted via http://www.ruby-forum.com/.
>