# Problem in rubygems installation

**URL:** <https://www.ruby-forum.com/t/problem-in-rubygems-installation/142692>\
**Category:** Ruby\
**Created:** [July 10, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/problem-in-rubygems-installation/142692 "2008-07-10T12:40:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [July 10, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/problem-in-rubygems-installation/142692/1 "2008-07-10T12:40:11Z")

</div>

Dear all,

while installing rubygems(1.2.0) in windows I am getting the below  
error.  
command used: ruby setup.rb

./lib/rubygems/spec\_fetcher.rb:1:in `require': no such file to load -- zlib (Loa dError) from ./lib/rubygems/spec_fetcher.rb:1 from ./lib/rubygems/source_index.rb:10:in`require’  
from ./lib/rubygems/source\_index.rb:10  
from ./lib/rubygems.rb:767:in `require' from ./lib/rubygems.rb:767 from setup.rb:22:in`require’  
from setup.rb:22

can anyone help me to solve this error.

I didn’t use ‘one click installer’ for ruby installation. bez I need to  
build ‘Ruby extensions’. so,  
I have installed ruby by ‘configure’ and ‘nmake’ commands.  
(within: c:/ruby/win32)  
now I am able to run the ruby extension program.

NOTE:  
I am using ruby version 1.8.6. with MSVC6

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [July 11, 2008, 8:43am UTC](https://www.ruby-forum.com/t/problem-in-rubygems-installation/142692/2 "2008-07-11T08:43:40Z")

</div>

Dear all,

This error is due to the version of the rubygems.  
now I have changed the version rubygems version into the older one. now  
its installed properly.

Regards.

---

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [July 15, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/problem-in-rubygems-installation/142692/3 "2008-07-15T20:02:19Z")

</div>

On Jul 10, 2008, at 23:39 PM, dare ruby wrote:

> This error is due to the version of the rubygems.  
> now I have changed the version rubygems version into the older one.  
> now  
> its installed properly.

It won’t work without zlib.
