# Installing gems from local machine only w/dependencies on win32?

**URL:** <https://rubytalk.org/t/installing-gems-from-local-machine-only-w-dependencies-on-win32/34363>\
**Category:** ruby-talk\
**Created:** [10 January 2007 21:10 UTC](https://rubytalk.org/t/installing-gems-from-local-machine-only-w-dependencies-on-win32/34363 "2007-01-10T21:10:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jeff](https://rubytalk.org/u/Jeff)\
**Post date:** [10 January 2007 21:10 UTC](https://rubytalk.org/t/installing-gems-from-local-machine-only-w-dependencies-on-win32/34363/1 "2007-01-10T21:10:56Z")

</div>

I'm on WinXP, Ruby 1.8.5, Gems 0.9.

I'm trying to install a gem that depends on other gems, all doing this  
locally without an internet connection. The Rails gem is a good  
example and the one that I'm experimenting with.

First I downloaded the Rails-related gems:

C:\dev\gems\>dir  
Volume in drive C has no label.  
Volume Serial Number is 14E7-0D73

Directory of C:\dev\gems

01/10/2007 02:19 PM \<DIR\> .  
01/10/2007 02:19 PM \<DIR\> ..  
11/28/2006 03:50 PM 81,920 actionmailer-1.2.5.gem  
11/28/2006 03:50 PM 530,432 actionpack-1.12.5.gem  
11/28/2006 03:51 PM 67,072 actionwebservice-1.1.6.gem  
11/28/2006 03:50 PM 349,696 activerecord-1.14.4.gem  
11/28/2006 03:50 PM 49,152 activesupport-1.3.1.gem  
11/28/2006 03:51 PM 144,896 rails-1.1.6.gem  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6 File(s) 1,223,168 bytes

And then I tried to install the rails gem, telling it to install all  
the other gems too, and only use the local machine from which to find  
the dependencies:

C:\dev\gems\>gem install rails-1.1.6.gem --include-dependencies --local

ERROR: Error installing gem rails-1.1.6.gem[.gem]: rails requires  
activesupport = 1.3.1

I don't know why I'm getting this error.

I'm assuming that --local means it should just look on the local  
machine, or is that wrong?

Or is there a more obvious/easier way to do this? I'm tired of  
installing each gem one at a time 🙂 But more importantly I'm just  
trying to learn the rules about how the Gems installer works.

Any ideas? Thanks!

Jeff

---

<div class="post-metadata">

**Author:** ![Jan\_Svitok](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@Jan\_Svitok](https://rubytalk.org/u/Jan_Svitok)\
**Post date:** [10 January 2007 21:22 UTC](https://rubytalk.org/t/installing-gems-from-local-machine-only-w-dependencies-on-win32/34363/2 "2007-01-10T21:22:44Z")

</div>

You can pass more gems on the commandline, you'll need to pass them  
in the correct order, however (from the least dependent to the most  
dependent ones).

Besides that, it's possible that an easier way exists.

> **···**
>
> On 1/10/07, Jeff \<cohen.jeff@gmail.com\> wrote:
> 
> > I'm on WinXP, Ruby 1.8.5, Gems 0.9.
> > 
> > I'm trying to install a gem that depends on other gems, all doing this  
> > locally without an internet connection. The Rails gem is a good  
> > example and the one that I'm experimenting with.
> > 
> > First I downloaded the Rails-related gems:
> > 
> > C:\dev\gems\>dir  
> > Volume in drive C has no label.  
> > Volume Serial Number is 14E7-0D73
> > 
> > Directory of C:\dev\gems
> > 
> > 01/10/2007 02:19 PM \<DIR\> .  
> > 01/10/2007 02:19 PM \<DIR\> ..  
> > 11/28/2006 03:50 PM 81,920 actionmailer-1.2.5.gem  
> > 11/28/2006 03:50 PM 530,432 actionpack-1.12.5.gem  
> > 11/28/2006 03:51 PM 67,072 actionwebservice-1.1.6.gem  
> > 11/28/2006 03:50 PM 349,696 activerecord-1.14.4.gem  
> > 11/28/2006 03:50 PM 49,152 activesupport-1.3.1.gem  
> > 11/28/2006 03:51 PM 144,896 rails-1.1.6.gem  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6 File(s) 1,223,168 bytes
> > 
> > And then I tried to install the rails gem, telling it to install all  
> > the other gems too, and only use the local machine from which to find  
> > the dependencies:
> > 
> > C:\dev\gems\>gem install rails-1.1.6.gem --include-dependencies --local
> > 
> > ERROR: Error installing gem rails-1.1.6.gem[.gem]: rails requires  
> > activesupport = 1.3.1
> > 
> > I don't know why I'm getting this error.
> > 
> > I'm assuming that --local means it should just look on the local  
> > machine, or is that wrong?
> > 
> > Or is there a more obvious/easier way to do this? I'm tired of  
> > installing each gem one at a time 🙂 But more importantly I'm just  
> > trying to learn the rules about how the Gems installer works.
> > 
> > Any ideas? Thanks!
> > 
> > Jeff

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [10 January 2007 21:33 UTC](https://rubytalk.org/t/installing-gems-from-local-machine-only-w-dependencies-on-win32/34363/3 "2007-01-10T21:33:28Z")

</div>

RubyGems doesn't currently support this. I've got it scheduled for 0.9.2.

> **···**
>
> On Jan 10, 2007, at 13:10, Jeff wrote:
> 
> > And then I tried to install the rails gem, telling it to install all  
> > the other gems too, and only use the local machine from which to find  
> > the dependencies:
> > 
> > C:\dev\gems\>gem install rails-1.1.6.gem --include-dependencies --local
> 
> --  
> Eric Hodel - drbrain@segment7.net - [http://blog.segment7.net](http://blog.segment7.net)
> 
> I LIT YOUR GEM ON FIRE!

---

<div class="post-metadata">

**Author:** ![Jeff](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jeff](https://rubytalk.org/u/Jeff)\
**Post date:** [11 January 2007 00:46 UTC](https://rubytalk.org/t/installing-gems-from-local-machine-only-w-dependencies-on-win32/34363/4 "2007-01-11T00:46:35Z")

</div>

Eric Hodel wrote:

> RubyGems doesn't currently support this. I've got it scheduled for  
> 0.9.2.

Awesome! Thanks a lot, Eric.

Jeff
