[Rubygems-developers] loadpath manager bugs?
Chad Fowler
chad at chadfowler.com
Fri Sep 3 07:19:46 EDT 2004
On Sep 3, 2004, at 3:49 AM, Gavin Sinclair wrote:
> Here's what I'm getting with the latest CVS.
>
> This shows I don't have rake traditionally installed (or stubbed).
>
> $ ruby -rrake -e ''
> ruby: No such file to load -- rake (LoadError)
>
> This shows I _do_ have it gem-installed.
>
> $ ruby -rubygems -e 'require_gem "rake"'
> # no output or error
>
> This shows the loadpath manager failing to resolve it.
>
> $ ruby -rubygems -rrake -e ''
> ruby: No such file to load -- rake (LoadError)
>
The problem is that the "-r" option of ruby (that you're trying to use
in loading Rake) doesn't actually run the #require method that Rich has
overridden. It is instead totally implemented in "sub-Ruby" C code so
there doesn't seem to be a way to hook it. This is a known problem
case.
Chad
More information about the Rubygems-developers
mailing list