[Rubygems-developers] Issues, some Windows related:

Curt Hibbs curt at hibbs.com
Sat Oct 23 23:35:21 EDT 2004


Chad Fowler wrote:
>
> On 23-Oct-04, at 4:30 PM, Austin Ziegler wrote:
>
> > On Sat, 23 Oct 2004 15:24:17 -0400, Chad Fowler <chad at chadfowler.com>
> > wrote:
> >> Thanks Austin.  This is a bunch of nice detail that will help for the
> >> next release.  I've got to get a compilation environment setup on
> >> windows I guess :(
> >
> > There's another point, and I'm not sure "whose" fault it is.
> >
> > I tried to do:
> >     gem install MultipartAlternativeLite latex needle neelix
> > ObjectGraph packrat RedCloth Rodo rublog ruby-cache sqlite-ruby swin
> > Syndic8-Ruby Technorati-Ruby vruby webgen
> >
>
> I've been thinking about adding this (and `gem install *gem`).   It's
> not implemented now.
>
> > Just like I could do with rpa-base. It didn't work, so I changed it to
> > a batch file, like:
> >
> >     gem install MultipartAlternativeLite
> >     gem install latex
> >     ...
> >     gem install Technorati-Ruby
> >     gem install vruby
> >     gem install webgen
> >
>
> I'd love to blame this one on Microsoft ;)  I guess we need to make a
> change in the way gem.cmd is setup.  I think there are different ways
> to call other programs from batch files, but it's been 7 or 8 years
> since I really knew :)
>
> > On running this batch file, *only* the first call to gem (gem.cmd)
> > actually ran. I'm not sure you can do anything about this, but it's
> > important to know this limitation if it is the case (can gems be run
> > from a Windows batch file?).

Since "gem" is a cmd file (and not ,say, and "exe"), you need to know this
when you set up you batch file. Changing you batch file to this should work:

     call gem install MultipartAlternativeLite
     call gem install latex
     call ...
     call gem install Technorati-Ruby
     call gem install vruby
     call gem install webgen

Curt



More information about the Rubygems-developers mailing list