# Error When Trying To Install a Gem

**URL:** <https://www.ruby-forum.com/t/error-when-trying-to-install-a-gem/174821>\
**Category:** Ruby\
**Created:** [September 2, 2009, 6:49pm UTC](https://www.ruby-forum.com/t/error-when-trying-to-install-a-gem/174821 "2009-09-02T18:49:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathanc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e68b1a/32.png) [@nathanc](https://www.ruby-forum.com/u/nathanc)\
**Post date:** [September 2, 2009, 6:49pm UTC](https://www.ruby-forum.com/t/error-when-trying-to-install-a-gem/174821/1 "2009-09-02T18:49:21Z")

</div>

Hello,  
I’m trying to install the zlib and the simpleton gems in my Linux  
Ubuntu, but recently i’ve changed my Ubuntu version, then i installed  
rubygems version 0.9.4-4, but when i try to install this gems i’m  
getting this error:

# ===================================== ubuntu@eeepc:~$ sudo gem install zlib /usr/bin/gem:10: undefined method `manage\_gems’ for Gem:Module (NoMethodError) ubuntu@eeepc:~$

What is wrong?

Thanks,  
Nathan Paulino Campos

---

<div class="post-metadata">

**Author:** ![nathanc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e68b1a/32.png) [@nathanc](https://www.ruby-forum.com/u/nathanc)\
**Post date:** [September 2, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/error-when-trying-to-install-a-gem/174821/2 "2009-09-02T22:28:46Z")

</div>

On Sep 2, 6:49 pm, Nathan C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> # ubuntu@eeepc:~$
> 
> What is wrong?

- There is no gem “zlib”
- Ubuntu had patched and modified RubyGems to install gems using their  
layout, you have two options:

A) Update Ubuntu RubyGems package  
B) Uninstall it and manually install RubyGems on top.

Ask the uncle google about this, there are several users with similar  
issues and their own solutions.

- manage\_gem has been deprecated several versions ago, the issue you  
see means somehow you “gem” script has become stalled or other issues  
due some upgrade.

HTH,

---

<div class="post-metadata">

**Author:** ![nathanc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e68b1a/32.png) [@nathanc](https://www.ruby-forum.com/u/nathanc)\
**Post date:** [September 2, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/error-when-trying-to-install-a-gem/174821/3 "2009-09-02T22:34:02Z")

</div>

-------- Original-Nachricht --------

> Datum: Thu, 3 Sep 2009 01:49:29 +0900  
> Von: Nathan C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: removed\_email\_address@domain.invalid  
> Betreff: Error When Trying To Install a Gem

> # ubuntu@eeepc:~$
> 
> What is wrong?

Dear Nathan,

there is no zlib gem:

# gem install zlib

ERROR: could not find gem zlib locally or in a repository

Do you mean the (external) zlib library ?  
You can install it in Ubuntu like so:

sudo aptitude install zlib1g  
sudo aptitude install zlib1g-dev

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

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![nathanc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e68b1a/32.png) [@nathanc](https://www.ruby-forum.com/u/nathanc)\
**Post date:** [September 3, 2009, 2:06am UTC](https://www.ruby-forum.com/t/error-when-trying-to-install-a-gem/174821/4 "2009-09-03T02:06:01Z")

</div>

Axel E. wrote:

> -------- Original-Nachricht --------
> 
> > Datum: Thu, 3 Sep 2009 01:49:29 +0900  
> > Von: Nathan C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > An: removed\_email\_address@domain.invalid  
> > Betreff: Error When Trying To Install a Gem
> 
> > # ubuntu@eeepc:~$
> > 
> > What is wrong?
> 
> Dear Nathan,
> 
> there is no zlib gem:
> 
> # gem install zlib
> 
> ERROR: could not find gem zlib locally or in a repository
> 
> Do you mean the (external) zlib library ?  
> You can install it in Ubuntu like so:
> 
> sudo aptitude install zlib1g  
> sudo aptitude install zlib1g-dev
> 
> (see here: [http://forum.webbynode.com/topic.php?id=56](http://forum.webbynode.com/topic.php?id=56) )
> 
> Best regards,
> 
> Axel

Hello Axel,  
Thanks, now i’ve installed the runygems and the zlib1g, but how i can  
install simpleton, because i’m trying to use the rubyzip gem, but it one  
of the requirements.

Thanks,  
Nathan Paulino Campos

---

<div class="post-metadata">

**Author:** ![nathanc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e68b1a/32.png) [@nathanc](https://www.ruby-forum.com/u/nathanc)\
**Post date:** [September 3, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/error-when-trying-to-install-a-gem/174821/5 "2009-09-03T13:40:53Z")

</div>

-------- Original-Nachricht --------

> Datum: Thu, 3 Sep 2009 09:06:03 +0900  
> Von: Nathan C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: removed\_email\_address@domain.invalid  
> Betreff: Re: Error When Trying To Install a Gem

> > > What is wrong?  
> > > You can install it in Ubuntu like so:  
> > > Hello Axel,  
> > > Thanks, now i’ve installed the runygems and the zlib1g, but how i can  
> > > install simpleton, because i’m trying to use the rubyzip gem, but it one  
> > > of the requirements.
> 
> ## Thanks, Nathan Paulino Campos
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

You can install rubyzip right away, gem install will offer to install  
any  
dependencies, if they are not yet installed.

Best regards,

Axel
