# Rubygem 1.3.1: zlib LoadError

**URL:** <https://www.ruby-forum.com/t/rubygem-1-3-1-zlib-loaderror/164888>\
**Category:** Ruby\
**Created:** [April 7, 2009, 3:22am UTC](https://www.ruby-forum.com/t/rubygem-1-3-1-zlib-loaderror/164888 "2009-04-07T03:22:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cornik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/43a26b/32.png) [@cornik](https://www.ruby-forum.com/u/cornik)\
**Post date:** [April 7, 2009, 3:22am UTC](https://www.ruby-forum.com/t/rubygem-1-3-1-zlib-loaderror/164888/1 "2009-04-07T03:22:56Z")

</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) from /opt/ruby/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:1:in`\<top (required)\>’  
from  
/opt/ruby/lib/ruby/1.9.1/rubygems/commands/query\_command.rb:3:in  
`require' from /opt/ruby/lib/ruby/1.9.1/rubygems/commands/query_command.rb:3:in`\<top  
(required)\>’  
from  
/opt/ruby/lib/ruby/1.9.1/rubygems/commands/list\_command.rb:2:in  
`require' from /opt/ruby/lib/ruby/1.9.1/rubygems/commands/list_command.rb:2:in`\<top  
(required)\>’  
from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:140:in  
`require' from /opt/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:140:in`rescue in load\_and\_instantiate’  
from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:132:in  
`load_and_instantiate' from /opt/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:65:in`[]’  
from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:118:in  
`find_command' from /opt/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:104:in`process\_args’  
from /opt/ruby/lib/ruby/1.9.1/rubygems/command\_manager.rb:75:in  
`run' from /opt/ruby/lib/ruby/1.9.1/rubygems/gem_runner.rb:39:in`run’  
from /opt/ruby/bin/gem:24:in `’

---

<div class="post-metadata">

**Author:** ![cornik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/43a26b/32.png) [@cornik](https://www.ruby-forum.com/u/cornik)\
**Post date:** [April 7, 2009, 3:26am UTC](https://www.ruby-forum.com/t/rubygem-1-3-1-zlib-loaderror/164888/2 "2009-04-07T03:26:45Z")

</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:** ![cornik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/43a26b/32.png) [@cornik](https://www.ruby-forum.com/u/cornik)\
**Post date:** [April 7, 2009, 4:06am UTC](https://www.ruby-forum.com/t/rubygem-1-3-1-zlib-loaderror/164888/3 "2009-04-07T04:06: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/\*

1. 
  1. 07, ¿ÀÀü 10:24, Matt Falkenhagen ÀÛ¼º:
