[LRUG] Weird gem issue

Jonathan Conway jonathan at agileevolved.com
Tue Nov 21 03:13:59 PST 2006


Hey Paolo,
You forgot to include the Ruby Gems library first which you'l need to  
access those gems,
just stick a require 'rubygems' at the top of your file before the  
other require's and you should
be good to go:)

Cheers

Jonathan


T. +44 (0)20 7099 7486
E.jonathan at agileevolved.com
W.http://www.agileevolved.com




>
> $ gem install facets
> $ gem install xmpp4r
> $ ruby gtakerence.rb
> gtalkerence.rb:1:in `require': no such file to load -- facet/string/ 
> brief (LoadError)
>         from gtalkerence.rb:1
>
> It doesn't find the libraries I just installed.
> Just for reference these are the gtalkerence.rb's first lines:
>
> require 'facet/string/brief'
> require 'xmpp4r'
> require 'yaml'
>
> I've seen that inside the gems folder there are some setup.rb files...
> C:\ruby\lib\ruby\gems\1.8\gems\facets-1.7.46\setup.rb
> C:\ruby\lib\ruby\gems\1.8\gems\xmpp4r- 0.3\setup.rb
>
> I just tried to launch them manually (shouldn't it happen  
> automatically at 'gem install' time?) and then I relaunch my bot:
>
> $ ruby gtakerence.rb
> GTalkerence: a GTalk ruby bot
> subscribers:paolo.dona at seesaw.it, ...
> ...
>
> It does work now... but why?
>
> My conclusion is: 'gem install' does not properly terminates the  
> installation of some libraries, I have to launch setup.rb to finish  
> its job...
> I thought it was my windows environment, but that happened to a  
> friend of mine on a Mac too...
>
> Do you have an explanation for this weird behavior?
> Paolo
>
> PS: I've got a fresh ruby 1.8.5 installation (from ruby-one-click- 
> installer).
>
> -- 
> Paolo Dona'
> SeeSaw | Another point of view
> http://www.seesaw.it
> paolo.dona at seesaw.it
> personal http://paolodona.blogspot.com
> _______________________________________________
> chat mailing list
> chat at lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20061121/d0f0afac/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ae_sig.jpg
Type: image/jpeg
Size: 3748 bytes
Desc: not available
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20061121/d0f0afac/attachment-0004.jpg>


More information about the Chat mailing list