Install a ruby library with it's .gem file

Hello everybody!

May some one tell me how can I install a ruby library using it’s “.gem”
file

I’ve tried to proceed like this:

gem install --install-dir PATH library_name

the output was like this
Successfully installed library_name.version
1 gem installed

but when I call it from the irb with require, it display the not found
error
message
thank you

Just run gem as usual, but from the path where the library lies.

“gem install yourlib”

Then it will skip the online lookup.

Regards,
Florian G.

On 2008.11.19., at 11:50, Lyes A. wrote:

the output was like this
Successfully installed library_name.version
1 gem installed

That’s the way to go about it!

but when I call it from the irb with require, it display the not
found error
message

require ‘rubygems’

before requiring the other gem doesn’t help?

Cheers,
Peter


http://www.rubyrailways.com
http://scrubyt.org

Ok! thank you , I will try it