From: Rob Biedenharn Date: 2007-06-30T03:05:24+09:00 Subject: Re: [ANN] webgen 0.4.5 --Apple-Mail-18-822168521 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed On Jun 29, 2007, at 1:40 PM, Gilbert Rebhan wrote: > > Hi, Thomas > > Thomas Leitner wrote: >> Hey everybody! >> -------------- >> I just release a new webgen version which fixes some bugs and =20 >> brings one > > that's good news :-) > i wanted to install the new version immediately, > but with =3D > > C:\WINNT\system32>ruby -v > ruby 1.8.5 (2006-08-25) [i386-mswin32] > > it gave me =3D > > C:\WINNT\system32>gem install webgen > ERROR: While executing gem ... (Zlib::BufError) > buffer error > > > Regards, Gilbert Jamis Buck may have the solution on his recent post about Capistrano =20 2.0RC4 http://weblog.rubyonrails.com/2007/6/29/capistrano-2-0-preview-4 > P.S. If you are on a Windows machine, and you get Zlib errors =20 > trying to install the Capistrano gem, try this. Find the rubygems/=20 > package.rb file (wherever it happens to be in your Ruby =20 > installation), open it up, and find the zipped_stream method. Then, =20= > replace it, wholesale, with the following: > > def zipped_stream(entry) > entry.read(10) # skip the gzip header > zis =3D Zlib::Inflate.new(-Zlib::MAX_WBITS) > is =3D StringIO.new(zis.inflate(entry.read)) > ensure > zis.finish if zis > end > That seems to do the trick for me; let me know if it doesn=92t work =20= > for you. Might be worth a try. (Of course, you could just get a Mac, too ;-) -Rob Rob Biedenharn Rob@AgileConsultingLLC.com http://agileconsultingllc.com -------------------------- "I sort of keep hoping that red herrings will steadilly come along, =20 to keep people busy; I get secret satisfaction when bad ideas take =20 hold and suck a lot of people in ... like Java." -- Don Knuth, Things a Computer Scientist Rarely Talks About, p.16 =20 (Stanford, California: CSLI Publications, 2001) --Apple-Mail-18-822168521--