[Rubygems-developers] Can't install a gem local which has a remote dependency.

chad at chadfowler.com chad at chadfowler.com
Sun Jan 9 16:51:01 EST 2005


> Hi,
>
> I've build a gem using "gem build xxx.gem", which depends on
> "wee-0.3.1" (add_dependency('wee', '>= 0.3.1')). But if I try to install
> it
> via "gem install xxx.gem", the following error is raised:
>
>> gem install nemo-0.1.0.gem
> Attempting local installation of 'nemo-0.1.0.gem'
>  -> Local installation can't proceed due to LoadError:
> Could not find RubyGem wee (>= 0.3.1)
> Attempting remote installation of 'nemo-0.1.0.gem'
> ERROR:  While executing gem ... (Gem::GemNotFoundException)
>     Could not find nemo-0.1.0.gem (> 0) in the repository
>
>
> Seems like rubygems is not able to handle mixed remote/local
> installations?
>


That's correct.  It's an intentional (but bad) decision we made.  I
believe Jim has something in the works that will unify remote vs. local
and allow us to easily support this.  It's a definite must-have change for
v 1.0.

Chad



More information about the Rubygems-developers mailing list