Forum: Ruby install a ruby library with it's .gem file

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D308ee3291656857f4f4bbc4e23cfc66?d=identicon&s=25 Amazouz Loui (lyes)
on 2008-11-19 11:54
(Received via mailing list)
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
D1f1c20467562fc1d8c8aa0d328def62?d=identicon&s=25 Florian Gilcher (skade)
on 2008-11-19 11:59
(Received via mailing list)
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 Gilcher
F50f5d582d76f98686da34917531fe56?d=identicon&s=25 Peter Szinek (Guest)
on 2008-11-19 11:59
(Received via mailing list)
On 2008.11.19., at 11:50, Lyes Amazouz 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
D308ee3291656857f4f4bbc4e23cfc66?d=identicon&s=25 Amazouz Loui (lyes)
on 2008-11-27 13:51
(Received via mailing list)
Ok!  thank you , I will try it
This topic is locked and can not be replied to.