# Problem in ruby1.9 gems

**URL:** <https://rubytalk.org/t/problem-in-ruby1-9-gems/55190>\
**Category:** ruby-talk\
**Created:** [2 September 2009 11:25 UTC](https://rubytalk.org/t/problem-in-ruby1-9-gems/55190 "2009-09-02T11:25:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@Abhishek\_Singh](https://rubytalk.org/u/Abhishek_Singh)\
**Post date:** [2 September 2009 11:25 UTC](https://rubytalk.org/t/problem-in-ruby1-9-gems/55190/1 "2009-09-02T11:25:27Z")

</div>

hi i have installed ruby 1.9.1 side by side with previously installed  
ruby 1.8.7  
i have created symlink to ruby1.9 also.  
now when i say 'gem1.8 list', it shows the list of gems installed for  
ruby 1.8

i've not installed any gems for ruby 1.9.1 yet.  
problem is when i try to get list of gems for ruby1.9.like:  
$ gem1.9 list

following error comes :

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

and when i tried to install gems for ruby1.9:  
$ sudo gem1.9 install activesupport

following error comes:

/usr/lib/ruby1.9/1.9.1/rubygems/package.rb:10:in `require': no such file  
to load -- zlib (LoadError)  
from /usr/lib/ruby1.9/1.9.1/rubygems/package.rb:10:in `\<top (required)\>'  
from /usr/lib/ruby1.9/1.9.1/rubygems/format.rb:9:in `require'  
from /usr/lib/ruby1.9/1.9.1/rubygems/format.rb:9:in `\<top (required)\>'  
from /usr/lib/ruby1.9/1.9.1/rubygems/installer.rb:11:in `require'  
from /usr/lib/ruby1.9/1.9.1/rubygems/installer.rb:11:in `\<top  
(required)\>'  
from /usr/lib/ruby1.9/1.9.1/rubygems/dependency\_installer.rb:3:in  
`require'  
from /usr/lib/ruby1.9/1.9.1/rubygems/dependency\_installer.rb:3:in `\<top  
(required)\>'  
from /usr/lib/ruby1.9/1.9.1/rubygems/commands/install\_command.rb:4:in  
`require'  
from /usr/lib/ruby1.9/1.9.1/rubygems/commands/install\_command.rb:4:in  
`\<top (required)\>'  
from /usr/lib/ruby1.9/1.9.1/rubygems/command\_manager.rb:140:in `require'  
from /usr/lib/ruby1.9/1.9.1/rubygems/command\_manager.rb:140:in `rescue  
in load\_and\_instantiate'  
from /usr/lib/ruby1.9/1.9.1/rubygems/command\_manager.rb:132:in  
`load\_and\_instantiate'  
from /usr/lib/ruby1.9/1.9.1/rubygems/command\_manager.rb:65:in `[]'  
from /usr/lib/ruby1.9/1.9.1/rubygems/command\_manager.rb:118:in  
`find\_command'  
from /usr/lib/ruby1.9/1.9.1/rubygems/command\_manager.rb:104:in  
`process\_args'  
from /usr/lib/ruby1.9/1.9.1/rubygems/command\_manager.rb:75:in `run'  
from /usr/lib/ruby1.9/1.9.1/rubygems/gem\_runner.rb:39:in `run'  
from /usr/bin/gem1.9:24:in `\<main\>'

how i can install gems for ruby1.9 ???

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

---

<div class="post-metadata">

**Author:** ![Axel\_Etzold](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Axel\_Etzold](https://rubytalk.org/u/Axel_Etzold)\
**Post date:** [2 September 2009 12:35 UTC](https://rubytalk.org/t/problem-in-ruby1-9-gems/55190/2 "2009-09-02T12:35:33Z")

</div>

Dear Abhishek,

> /usr/lib/ruby1.9/1.9.1/rubygems/spec\_fetcher.rb:1:in `require': no such  
> file to load -- zlib (LoadError)

your system has a problem finding zlib ...  
there have been quite a number of threads investigating this problem with  
various versions of Ruby on this list.  
What OS are you using and how did you install Ruby 1.9 ?

Best regards,

Axel

> **···**
>
> --  
> Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate  
> für nur 19,99 Euro/mtl.!\* [Aktuelle Nachrichten aus Politik, Wirtschaft & Panorama | GMX](http://portal.gmx.net/de/go/dsl02)

---

<div class="post-metadata">

**Author:** ![Abhishek\_Singh](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@Abhishek\_Singh](https://rubytalk.org/u/Abhishek_Singh)\
**Post date:** [2 September 2009 13:01 UTC](https://rubytalk.org/t/problem-in-ruby1-9-gems/55190/3 "2009-09-02T13:01:46Z")

</div>

Axel Etzold wrote:

> Dear Abhishek,
> 
> > /usr/lib/ruby1.9/1.9.1/rubygems/spec\_fetcher.rb:1:in `require': no such  
> > file to load -- zlib (LoadError)
> 
> your system has a problem finding zlib ...  
> there have been quite a number of threads investigating this problem  
> with  
> various versions of Ruby on this list.  
> What OS are you using and how did you install Ruby 1.9 ?

i'm using ubuntu 9.04  
i've followed following steps to install ruby 1.9.1  
1) i,ve downloaded ruby 1.9.1-p243 from  
"[http://www.ruby-lang.org/en/downloads/&quot](http://www.ruby-lang.org/en/downloads/&quot);  
2) extract that .tar.gz  
3) run './configure --prefix=/usr --program-suffix=1.9'  
4) run 'sudo make && sudo make install'  
5) create symlink 'ruby' to 'ruby1.9'

-Abhishek

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

---

<div class="post-metadata">

**Author:** ![Axel\_Etzold](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Axel\_Etzold](https://rubytalk.org/u/Axel_Etzold)\
**Post date:** [2 September 2009 13:11 UTC](https://rubytalk.org/t/problem-in-ruby1-9-gems/55190/4 "2009-09-02T13:11:36Z")

</div>

> i'm using ubuntu 9.04  
> i've followed following steps to install ruby 1.9.1  
> 1) i,ve downloaded ruby 1.9.1-p243 from  
> "[http://www.ruby-lang.org/en/downloads/&quot](http://www.ruby-lang.org/en/downloads/&quot);  
> 2) extract that .tar.gz  
> 3) run './configure --prefix=/usr --program-suffix=1.9'  
> 4) run 'sudo make && sudo make install'  
> 5) create symlink 'ruby' to 'ruby1.9'

Try this :

[http://forum.webbynode.com/topic.php?id=56](http://forum.webbynode.com/topic.php?id=56)

Best regards,

Axel

> **···**
>
> --  
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -  
> sicherer, schneller und einfacher! [Aktuelle Nachrichten aus Politik, Wirtschaft & Panorama | GMX](http://portal.gmx.net/de/go/chbrowser)
