# Problems installing gems

**URL:** <https://www.ruby-forum.com/t/problems-installing-gems/49939>\
**Category:** Rails\
**Created:** [December 10, 2005, 5:25pm UTC](https://www.ruby-forum.com/t/problems-installing-gems/49939 "2005-12-10T17:25:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/977dab/32.png) [@bcm](https://www.ruby-forum.com/u/bcm)\
**Post date:** [December 10, 2005, 5:25pm UTC](https://www.ruby-forum.com/t/problems-installing-gems/49939/1 "2005-12-10T17:25:38Z")

</div>

Hey everyone…

I’m using Linux with Fedora Core 2. I decided last night I want to try  
and install ruby and rails. Ruby installed very easily, it was a lot  
less painless than I thought. Next I needed to install Gems, upon  
attempting to install Gems I realized I also don’t have zlib-0.6.0. I  
followed directions (  
[Peak Obsession](http://wiki.rubyonrails.com/rails/pages/RailsOnFedora)) and used “sudo  
yum install zlib-devel”. This installation was successful.

## After thinking I had zlib installed I decided to try and install Gems…packages all extract correctly, but installing I run into these snags:

As of RubyGems 0.8.0, library stubs are no longer needed.  
Searching $LOAD\_PATH for stubs to optionally delete (may take a  
while)…  
…done.  
No library stubs found.

/root/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require__': no such file to load -- zlib (LoadError) from /root/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require’  
from /root/lib/ruby/site\_ruby/1.8/rubygems/package.rb:9  
from  
/root/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `require' from /root/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1 from /root/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require’  
from /root/lib/ruby/site\_ruby/1.8/rubygems.rb:61:in  
`manage_gems' from /home/httpd/vhosts/cambridgecreative.net/httpdocs/rubygems-0.8.11/./post-install.rb:64:in `install\_sources’  
from  
/home/httpd/vhosts/cambridgecreative.net/httpdocs/rubygems-0.8.11/./post-install.rb:75:in  
`instance_eval' from setup.rb:583:in `try\_run\_hook’  
from setup.rb:577:in `run_hook' from setup.rb:1315:in `exec\_task\_traverse’  
from setup.rb:1168:in `exec_install' from setup.rb:887:in `exec\_install’  
from setup.rb:705:in `invoke' from setup.rb:674:in `invoke’  
from setup.rb:1352  
[root@u15194085 rubygems-0.8.11]#  
/root/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require\_\_': no such file to load – zlib (LoadError)

* * *

Any ideas what my problem can be? I thought this Rails installation was  
going to be easy but now that I’m about 5 hours deep I am rethinking  
that…Any help you can give me would be much appreciated.

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![bcm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/977dab/32.png) [@bcm](https://www.ruby-forum.com/u/bcm)\
**Post date:** [December 10, 2005, 5:54pm UTC](https://www.ruby-forum.com/t/problems-installing-gems/49939/2 "2005-12-10T17:54:03Z")

</div>

After you installed zlib library, you need to recompile Ruby. zlib  
extension  
is missing.

Kent.
