# Gems on Debian

**URL:** <https://www.ruby-forum.com/t/gems-on-debian/106853>\
**Category:** Ruby\
**Created:** [June 14, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/gems-on-debian/106853 "2007-06-14T18:06:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro\_mg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Post date:** [June 14, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/gems-on-debian/106853/1 "2007-06-14T18:06:22Z")

</div>

Hi,

after installing rubygems package in Debian, i can’t seem to use the  
installed gems via “sudo gem install” although they install correctly.

I believe it is related to a path issue. What is the better (correct)  
way to make it work ?

thank you,

---

<div class="post-metadata">

**Author:** ![pedro\_mg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Post date:** [June 14, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/gems-on-debian/106853/2 "2007-06-14T18:15:24Z")

</div>

On 6/14/07, pedro mg \<seti\_out@tquadrado\_out.com\> wrote:

> pedro g

This may be a dumb question, but I’ve seen a lot of people missing  
this, so, are you using the require command like this (the correct  
way):

require ‘rubygems’  
require ‘’

---

<div class="post-metadata">

**Author:** ![pedro\_mg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Post date:** [June 14, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/gems-on-debian/106853/3 "2007-06-14T18:54:48Z")

</div>

On Fri, Jun 15, 2007 at 01:05:02AM +0900, pedro mg wrote:

> Hi,

Hi,

> after installing rubygems package in Debian, i can’t seem to use the  
> installed gems via “sudo gem install” although they install correctly.

It seems that you’re confusing the installation of gems and the use of  
them.  
Gem installation is done with

sudo gem install

you can easily test if that works by running ‘gem’ from the shell (if it  
doesn’t, according to [packages.debian.org](http://packages.debian.org), the gem binary is installed  
in  
/usr/bin where it should be).

In another posting it was pointed out already how to use gems after  
installing  
them so I won’t repeat that here.

G’luck

Bas

–  
Bas van Gils [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid), [http://www.van-gils.org](http://www.van-gils.org)  
[[[Thank you for not distributing my E-mail address]]]

Quod est inferius est sicut quod est superius, et quod est superius est  
sicut  
quod est inferius, ad perpetranda miracula rei unius.
