doog <doog / google.com> wrote:

> so I downloaded Ruby 1.8.5 source from:
> http://www2.ruby-lang.org/en/20020102.html
> which I installed in:
> /usr/local/bin/rub
> Now RubyGems and the libraries I had installed are not found.
> 
> I can run ruby with this alias:
> 
> ruby='/usr/local/bin/ruby'
> 
> Is there a way to get RubyGems and the libraries to be
> recognized by this new version?  Or a way to install them
> into the new version?

Yes "no prob" ;-)

currently (apart from Apple's buggy ruby) i'm using two rubies install
one under /opt (MacPort) another one devoted to jRuby under my HOME/bin.

aliasing isn't sufficiant, u have also to setup your PATH such a way the
kernel hits /usr/local/bin before /usr/bin, afaik.

entering in ther terminal :

which ruby

gives you the "good" one ?

also did you setup in your env vars GEM_HOME, RUBYOPT and RUBYGEMS ?

another way to specify dirs is to use a ~/.gemrc see the on line man of
rubygems.

hoping that could help.
-- 
une bñ×ue