[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gems on Debian

Piett H.

6/14/2007 3:21:00 PM

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,
--
pedro g
2 Answers

Todd Benson

6/14/2007 4:14:00 PM

0

On 6/14/07, pedro mg <seti_out@tquadrado_out.com> wrote:
> 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,
> --
> 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 '<your gem>'

<your code>

Bas van Gils

6/14/2007 4:54:00 PM

0

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 <someGem>

you can easily test if that works by running 'gem' from the shell (if it
doesn't, according to 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 <bas@van-gils.org>, http://www.va...
[[[ 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.