# Rubygem 1.3.1: zlib LoadError

**URL:** <https://rubytalk.org/t/rubygem-1-3-1-zlib-loaderror/52711>\
**Category:** ruby-talk\
**Created:** [7 April 2009 01:22 UTC](https://rubytalk.org/t/rubygem-1-3-1-zlib-loaderror/52711 "2009-04-07T01:22:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Humphrey\_Alba](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@Humphrey\_Alba](https://rubytalk.org/u/Humphrey_Alba)\
**Post date:** [7 April 2009 01:22 UTC](https://rubytalk.org/t/rubygem-1-3-1-zlib-loaderror/52711/1 "2009-04-07T01:22:14Z")

</div>

why am i getting this zlib error?

RUBYGEMS VERSION: 1.3.1  
RUBY VERSION: 1.9.1 (2009-01-30 patchlevel 0) [i686-linux]

/opt/ruby/bin$ gem list  
/opt/ruby/lib/ruby/1.9.1/rubygems/spec\_fetcher.rb:1:in `require': no  
such file to load -- zlib (LoadError)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/lib/ruby/1.9.1/rubygems/spec\_fetcher.rb:1:in  
`\<top (required)\>'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
/opt/ruby/lib/ruby/1.9.1/rubygems/commands/query\_command.rb:3:in  
`require'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
/opt/ruby/lib/ruby/1.9.1/rubygems/commands/query\_command.rb:3:in `\<top  
(required)\>'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
/opt/ruby/lib/ruby/1.9.1/rubygems/commands/list\_command.rb:2:in  
`require'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
/opt/ruby/lib/ruby/1.9.1/rubygems/commands/list\_command.rb:2:in `\<top  
(required)\>'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:140:in  
`require'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:140:in  
`rescue in load\_and\_instantiate'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:132:in  
`load\_and\_instantiate'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:65:in  
`[]'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:118:in  
`find\_command'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:104:in  
`process\_args'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:75:in  
`run'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/lib/ruby/1.9.1/rubygems/gem\_runner.rb:39:in `run'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /opt/ruby/bin/gem:24:in `\<main\>'

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Matt\_Falkenhagen1](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@Matt\_Falkenhagen1](https://rubytalk.org/u/Matt_Falkenhagen1)\
**Post date:** [7 April 2009 01:24 UTC](https://rubytalk.org/t/rubygem-1-3-1-zlib-loaderror/52711/2 "2009-04-07T01:24:56Z")

</div>

Kinroc Cornik wrote:

> why am i getting this zlib error?
> 
> RUBYGEMS VERSION: 1.3.1  
> RUBY VERSION: 1.9.1 (2009-01-30 patchlevel 0) [i686-linux]
> 
> /opt/ruby/bin$ gem list  
> /opt/ruby/lib/ruby/1.9.1/rubygems/spec\_fetcher.rb:1:in `require': no  
> such file to load -- zlib (LoadError)

You probably don't have the zlib development library installed. Ensure both the runtime and development library are installed.

---

<div class="post-metadata">

**Author:** ![Jun\_Young\_Kim](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@Jun\_Young\_Kim](https://rubytalk.org/u/Jun_Young_Kim)\
**Post date:** [7 April 2009 02:04 UTC](https://rubytalk.org/t/rubygem-1-3-1-zlib-loaderror/52711/3 "2009-04-07T02:04:39Z")

</div>

this problems also happen in hpux(11.23, 11.31).

ruby installer doesn't distinguish between sl and so extension.

I need to make all symbolic links from sl to so in /usr/local/lib/ruby/\*

2009. 04. 07, 오전 10:24, Matt Falkenhagen 작성:

> **···**
>
> > Kinroc Cornik wrote:
> > 
> > > why am i getting this zlib error?  
> > > RUBYGEMS VERSION: 1.3.1  
> > > RUBY VERSION: 1.9.1 (2009-01-30 patchlevel 0) [i686-linux]  
> > > /opt/ruby/bin$ gem list  
> > > /opt/ruby/lib/ruby/1.9.1/rubygems/spec\_fetcher.rb:1:in `require': no  
> > > such file to load -- zlib (LoadError)
> > 
> > You probably don't have the zlib development library installed. Ensure both the runtime and development library are installed.
