Ruby install not being found properly?

Ryan Schmidt ryandesign at macports.org
Tue Oct 2 21:56:14 PDT 2007


On Oct 2, 2007, at 21:21, Michael Jackson wrote:

> I'm confused. The following lines from my terminal window say it all:
>
> $ ruby -v
> ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
> $ which ruby
> /opt/local/bin/ruby
> $ /opt/local/bin/ruby -v
> ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.1]
>
> I have Ruby installed correctly with MacPorts, I have my path set  
> up correctly, but for some reason when I use:
>
> $ ruby
>
> it goes back to the original system version instead of the newly  
> installed one! Any ideas?

Then your $PATH is not set up correctly, or else you have an alias  
definition somewhere.

What does "echo $PATH" say?
What does "alias | grep ruby" say?





More information about the macports-users mailing list