From: "Michael T. Richter" Date: 2008-06-02T08:58:39+09:00 Subject: Re: Gems not working --=-l13XiD5xzeFIua7No4Qw Content-Type: multipart/alternative; boundary="=-JG1uvi79Ab4ZTzcd8D6N" --=-JG1uvi79Ab4ZTzcd8D6N Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2008-06-02 at 04:07 +0900, Tom Copeland wrote: > > $ for a in actionmailer RedCloth rspec rubygems-update rails fxruby > > bindata actionpack gem_plugin rush ruby-debug-ide activeresource > > opod ; do echo $a ; until gem install $a ; do echo Retrying $a... ; > > done ; done > I think an easier way to do this might be: >=20 > sudo gem install actionmailer RedCloth [... etc ...] The problem with this is that if -- scratch that, when -- it fails, I either have to go into the backscroll and figure out which pieces installed and which didn't, or I wrap that all up in an until and if (when) any single gem fails, the whole thing gets restarted. My way, while less efficient overall, at least doesn't reinstall gems a dozen times over because the next-to-last one failed to install. Were the gems servers actually reliable, I wouldn't have to do even the until wrap, not to mention the grotesquely inefficient one-at-a-time approach I took above. --=20 Michael T. Richter (GoogleTalk: ttmrichter@gmail.com) All really first class designers are both artists, engineers, and men of a powerful and intolerant temper, quick to resist the least modification of the plans, energetic in fighting the least infringement upon what they regard as their own sphere of action. (Nevil Shute) --=-JG1uvi79Ab4ZTzcd8D6N Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, 2008-06-02 at 04:07 +0900, Tom Copeland wrote:
> $ for a in actionmailer RedCloth rspec rubygem=
s-update rails fxruby
> bindata actionpack gem_plugin rush ruby-debug-=
ide activeresource
> opod ; do echo $a ; until gem install $a ; do =
echo Retrying $a... ;
> done ; done

I think an easier way to do this might be:

sudo gem install actionmailer RedCloth [... etc ...=
]

The problem with this is that if -- scratch that, when -- it fails, = I either have to go into the backscroll and figure out which pieces install= ed and which didn't, or I wrap that all up in an until and if (when)= any single gem fails, the whole thing gets restarted.

My way, while less efficient overall, at least doesn't reinstall gems a doz= en times over because the next-to-last one failed to install.  Were th= e gems servers actually reliable, I wouldn't have to do even the until wrap= , not to mention the grotesquely  inefficient one-at-a-time approach I= took above.

--
Michael T. Richter <ttmri= chter@gmail.com> (GoogleTalk: ttmrichter@gmail.com)
All really first class designers are both artists, engineers, and men of= a powerful and intolerant temper, quick to resist the least modification o= f the plans, energetic in fighting the least infringement upon what they re= gard as their own sphere of action. (Nevil Shute)
--=-JG1uvi79Ab4ZTzcd8D6N-- --=-l13XiD5xzeFIua7No4Qw Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBIQzfHLqyWkKVQ54QRAqB9AKC9m5OWXpr8oSFwxevSAxora+NT9wCdH7V9 upThZOG/oufetjJzdrHzl/g= =Eh5a -----END PGP SIGNATURE----- --=-l13XiD5xzeFIua7No4Qw--