# Annoyance with gems and zlib

**URL:** <https://www.ruby-forum.com/t/annoyance-with-gems-and-zlib/164652>\
**Category:** Ruby\
**Created:** [April 3, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/annoyance-with-gems-and-zlib/164652 "2009-04-03T17:29:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![spobo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@spobo](https://www.ruby-forum.com/u/spobo)\
**Post date:** [April 3, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/annoyance-with-gems-and-zlib/164652/1 "2009-04-03T17:29:00Z")

</div>

Hi … i’ve been trying to get rails up and running on my system. I run  
OS X leopard. updated ruby to 1.8.7. Installed ruby 1.9 with a suffix  
following this guide ([http://ruby.tie-rack.org/28/installing-19/](http://ruby.tie-rack.org/28/installing-19/))

So I checked what rails version I had … turns out to be 1.2.6 _iiiiik_

Quickly typed the following:

mbp:~ spobo$ gem update rails -v

And got this awesome result.

Updating installed gems  
GET 302 Found: [RubyGems.org | your community gem host](http://gems.rubyforge.org/latest_specs.4.8.gz)  
GET 200 OK:  
[http://guide.opendns.com/?url=gems.rubyforge.org%2Flatest\_specs.4.8.gz&servfail](http://guide.opendns.com/?url=gems.rubyforge.org%2Flatest_specs.4.8.gz&servfail)  
ERROR: While executing gem … (Zlib::GzipFile::Error)  
not in gzip format  
mbp:~ spobo$

so … anyone have any clues? I’m sort of really stumped as to what goes  
where when you compile programs like ruby as to what goes where and how  
do you tweak/uninstall it when necessary.

ps:

mbp:~ spobo$ sudo gem update --system  
Updating RubyGems  
ERROR: While executing gem … (Zlib::GzipFile::Error)  
not in gzip format

ps2: yes, I know I’m not using ruby 1.9 when I do the simple gem command  
and no, gem19 install rails and gem19 update --system do the same.

---

<div class="post-metadata">

**Author:** ![spobo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@spobo](https://www.ruby-forum.com/u/spobo)\
**Post date:** [April 3, 2009, 5:40pm UTC](https://www.ruby-forum.com/t/annoyance-with-gems-and-zlib/164652/2 "2009-04-03T17:40:09Z")

</div>

On Apr 3, 2009, at 9:28 AM, Vincent Ds wrote:

> nd got this awesome result.
> 
> Updating installed gems  
> GET 302 Found: [RubyGems.org | your community gem host](http://gems.rubyforge.org/latest_specs.4.8.gz)  
> GET 200 OK:  
> [http://guide.opendns.com/?url=gems.rubyforge.org%2Flatest\_specs.4.8.gz&servfail](http://guide.opendns.com/?url=gems.rubyforge.org%2Flatest_specs.4.8.gz&servfail)

did you even try clicking the above link?

you are having dns issues. either that, or [gems.rubyforge.org](http://gems.rubyforge.org) was  
down when you ran that command. first step is always to read the  
error messages! 😉

regards.

> ERROR: While executing gem … (Zlib::GzipFile::Error)  
> not in gzip format  
> mbp:~ spobo$

a @ [http://codeforpeople.com/](http://codeforpeople.com/)

---

<div class="post-metadata">

**Author:** ![spobo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@spobo](https://www.ruby-forum.com/u/spobo)\
**Post date:** [April 3, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/annoyance-with-gems-and-zlib/164652/3 "2009-04-03T17:52:09Z")

</div>

Ara Howard wrote:

> On Apr 3, 2009, at 9:28 AM, Vincent Ds wrote:
> 
> > nd got this awesome result.
> > 
> > Updating installed gems  
> > GET 302 Found: [RubyGems.org | your community gem host](http://gems.rubyforge.org/latest_specs.4.8.gz)  
> > GET 200 OK:  
> > [http://guide.opendns.com/?url=gems.rubyforge.org%2Flatest\_specs.4.8.gz&servfail](http://guide.opendns.com/?url=gems.rubyforge.org%2Flatest_specs.4.8.gz&servfail)
> 
> did you even try clicking the above link?

Well … to tell the truth I only got that reply once. The 90 other  
times everything just said not in gzip format without anything else. I  
was hoping it was more of a quick fix and a known issue. I’ll try  
turning off opendns and see what happens then.

> you are having dns issues. either that, or [gems.rubyforge.org](http://gems.rubyforge.org) was  
> down when you ran that command. first step is always to read the  
> error messages! 😉
> 
> regards.
> 
> > ERROR: While executing gem … (Zlib::GzipFile::Error)  
> > not in gzip format  
> > mbp:~ spobo$
> 
> a @ [http://codeforpeople.com/](http://codeforpeople.com/)

---

<div class="post-metadata">

**Author:** ![spobo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@spobo](https://www.ruby-forum.com/u/spobo)\
**Post date:** [April 3, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/annoyance-with-gems-and-zlib/164652/4 "2009-04-03T22:37:11Z")

</div>

On Apr 3, 2009, at 08:52, Vincent Ds wrote:

> > did you even try clicking the above link?
> 
> Well … to tell the truth I only got that reply once. The 90 other  
> times everything just said not in gzip format without anything else. I  
> was hoping it was more of a quick fix and a known issue. I’ll try  
> turning off opendns and see what happens then.

Did you try fetching either URL (using wget or curl or telnet)?

It seems that opendns breaks the internet on purpose. I would avoid  
it at all cost.

---

<div class="post-metadata">

**Author:** ![spobo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@spobo](https://www.ruby-forum.com/u/spobo)\
**Post date:** [April 3, 2009, 10:53pm UTC](https://www.ruby-forum.com/t/annoyance-with-gems-and-zlib/164652/5 "2009-04-03T22:53:58Z")

</div>

Eric H. wrote:

> On Apr 3, 2009, at 08:52, Vincent Ds wrote:
> 
> > > did you even try clicking the above link?
> > 
> > Well … to tell the truth I only got that reply once. The 90 other  
> > times everything just said not in gzip format without anything else. I  
> > was hoping it was more of a quick fix and a known issue. I’ll try  
> > turning off opendns and see what happens then.
> 
> Did you try fetching either URL (using wget or curl or telnet)?
> 
> It seems that opendns breaks the internet on purpose. I would avoid  
> it at all cost.

I completely agree. Turned off opendns and everything started working  
magically. Who knew … perhaps the guys running opendns are Java  
fanboys? Also, rails was using a different version of ruby which led to  
some incompatibilities between rubygems and rails. Everything is fixed  
now and running smoothly with phusion passenger … brilliant 😛 Off to  
do some conding!

---

<div class="post-metadata">

**Author:** ![spobo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@spobo](https://www.ruby-forum.com/u/spobo)\
**Post date:** [April 4, 2009, 1:19am UTC](https://www.ruby-forum.com/t/annoyance-with-gems-and-zlib/164652/6 "2009-04-04T01:19:22Z")

</div>

On Friday 03 April 2009 15:53:27 Vincent Ds wrote:

> Eric H. wrote:
> 
> > It seems that opendns breaks the internet on purpose. I would avoid  
> > it at all cost.
> 
> I completely agree. Turned off opendns and everything started working  
> magically. Who knew … perhaps the guys running opendns are Java  
> fanboys?

Nah, they just hate the Internet. Maybe they’re Flash fanbois?

However, it is possible to register an IP address to not use this  
“feature”:

\<[http://www.labnol.org/internet/stop-opendns-from-redirecting-domain-](http://www.labnol.org/internet/stop-opendns-from-redirecting-domain-)  
typos/4112/\>

Not great, but it works, if your ISP-provided DNS is really bad enough  
that  
you need OpenDNS. If not, easier to just turn it off.
