# Missing zlib on latest ruby version

**URL:** <https://www.ruby-forum.com/t/missing-zlib-on-latest-ruby-version/141967>\
**Category:** Ruby\
**Created:** [July 2, 2008, 5:52am UTC](https://www.ruby-forum.com/t/missing-zlib-on-latest-ruby-version/141967 "2008-07-02T05:52:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [July 2, 2008, 5:52am UTC](https://www.ruby-forum.com/t/missing-zlib-on-latest-ruby-version/141967/1 "2008-07-02T05:52:25Z")

</div>

You all know the error. missing require, blah blah. Seriously,  
nothing new here. here’s the scoop

But I found that zlib was missing from the latest ruby version on my  
Ubuntu. I download and install from source the latest version, and  
while installing rubygems, it complains of missing zlib!

Has anyone else experience this? This is also the case with the  
version from March, as well.

-------------------------------------------------------|  
~ Ari  
“… NOT INTENDED FOR USE IN … NUCLEAR FACILITIES, AIRCRAFT  
NAVIGATION … LIFE SUPPORT MACHINES” - iTunes EULA

---

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [July 2, 2008, 8:03am UTC](https://www.ruby-forum.com/t/missing-zlib-on-latest-ruby-version/141967/2 "2008-07-02T08:03:25Z")

</div>

On Wed, Jul 2, 2008 at 11:49 AM, fedzor [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> You all know the error. missing require, blah blah. Seriously, nothing new  
> here. here’s the scoop
> 
> But I found that zlib was missing from the latest ruby version on my  
> Ubuntu. I download and install from source the latest version, and while  
> installing rubygems, it complains of missing zlib!

ruby doesnt depend on zlib, so ubuntu’s correct. Only rubygems does.  
apt-get  
install zlib1g

-jf

> Has anyone else experience this? This is also the case with the version  
> from March, as well.

–  
In the meantime, here is your PSA:  
“It’s so hard to write a graphics driver that open-sourcing it would not  
help.”  
– Andrew Fear, Software Product Manager, NVIDIA Corporation

> **[An Interview With Linus Torvalds: Linux and Git - Part 1 30 Years Of Linux](https://www.tag1consulting.com/blog/interview-linus-torvalds-linux-and-git)**
>
> Thirty years ago, Linus Torvalds was a 21 year old student at the University of Helsinki when he first released the Linux Kernel. His announcement started, “I’m doing a (free) operating system (just a hobby, won't be big and professional…)”. Three...

---

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [July 3, 2008, 2:38am UTC](https://www.ruby-forum.com/t/missing-zlib-on-latest-ruby-version/141967/3 "2008-07-03T02:38:30Z")

</div>

On Jul 1, 2008, at 22:59 PM, Jeffrey ‘jf’ Lim wrote:

> > 
> 
> ruby doesnt depend on zlib, so ubuntu’s correct. Only rubygems does.  
> apt-get  
> install zlib1g

Much like the readline, iconv, and openssl bindings, the zlib binding  
is a part of ruby and like the others I mentioned, gets fairly  
frequent use. In these respects, ruby (specifically, language,  
library, and user community) does depend on them.

Furthermore, these C libraries are usually available on most operating  
systems, so I find it reasonable to assume their ruby bindings are  
available.

Making zlib (and similar libraries) an additional component that must  
be found by the user causes confusion and creates a support burden for  
people who have no idea what to do to fix it.

I’ve had various tickets filed against RubyGems because zlib or  
openssl or rdoc was missing. It isn’t my job to figure out a certain  
platform requires extra installations just to get basic ruby  
functionality, nor is it my job to track changes to package names and  
installer arguments per platform, but I end up being the one who has  
to deal with it.

I would be much happier if everybody’s ruby worked reasonably the same  
when they installed ruby, no matter the package system.

In this case, the problem was missing zlib headers, which falls under  
the same general category of a support problem foisted onto  
undeserving project maintainers.

---

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [July 3, 2008, 4:06am UTC](https://www.ruby-forum.com/t/missing-zlib-on-latest-ruby-version/141967/4 "2008-07-03T04:06:14Z")

</div>

On Thu, Jul 3, 2008 at 8:35 AM, Eric H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > installing rubygems, it complains of missing zlib!  
> > > does depend on them.

🙂 hey - talk to the ubuntu (or whoever) guys.

> rdoc was missing. It isn’t my job to figure out a certain platform requires

I suppose i can imagine your pain. But hey, do up an faq if you really  
do  
get that many support requests like that.

-jf

–  
In the meantime, here is your PSA:  
“It’s so hard to write a graphics driver that open-sourcing it would not  
help.”  
– Andrew Fear, Software Product Manager, NVIDIA Corporation

> **[An Interview With Linus Torvalds: Linux and Git - Part 1 30 Years Of Linux](https://www.tag1consulting.com/blog/interview-linus-torvalds-linux-and-git)**
>
> Thirty years ago, Linus Torvalds was a 21 year old student at the University of Helsinki when he first released the Linux Kernel. His announcement started, “I’m doing a (free) operating system (just a hobby, won't be big and professional…)”. Three...

---

<div class="post-metadata">

**Author:** ![fedzor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@fedzor](https://www.ruby-forum.com/u/fedzor)\
**Post date:** [July 2, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/missing-zlib-on-latest-ruby-version/141967/5 "2008-07-02T16:57:11Z")

</div>

Yea, well. I’m extra dumb. Apparently the version installed through  
apt-get contained the zlib package binary for itself only, which is  
why it threw me for a loop. Needed to install zlib-devel system wide.

Fixed!

-------------------------------------------------------|  
~ Ari  
crap my sig won’t fit
