Re: Question about fresh GEM install

Jim Weirich
2005-01-06T03:46:13Z

On Wednesday 05 January 2005 06:34 pm, Trevor wrote:
> So it would appear that it needs rubygems to be loaded before it can
> find the appropriate rake files.  I would suspect that on the
> sparc-solaris2.7 machine, if I added "require
''rubygems''" to the first
> line of the Rails Rakefile that the problem would be solved.  Does
> anyone know why I would have to do this on a sparc-solaris2.7
> installation but not a i386-linux-gnu installation?

Shooting in the dark here ... Perhaps you have a partial non-gem installation
of rake.  The rake executable begins with :

  begin
    require ''rake''
  rescue LoadError
    require ''rubygems''
    require_gem ''rake''
  end

If it finds a non-gem rake.rb file, then it never loads up rubygems.  But if
the non-gem installation is partial (e.g. someone blew away the rake
directory but not the rake.rb file), then it won''t find the gempagetask
later.

--
-- Jim Weirich    jim-Fxty1mrVU9GlFc2d6oM/ew@public.gmane.org
http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)