Hi guys, <br clear="all">I've got a problem installing some gems:<br>eg: I wanna run a jabber bot I just wrote (gtalkerence.rb). <br>It uses facets and xmpp4r so I did:<br><br><span style="font-family: courier new,monospace;">
$ gem install facets
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$ gem install xmpp4r</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
$ ruby gtakerence.rb</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">gtalkerence.rb:1:in `require': no such file to load -- facet/string/brief (LoadError)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> from gtalkerence.rb:1<br><br></span>It doesn't find the libraries I just installed. <br>Just for reference these are the gtalkerence.rb's first lines:<br><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
require 'facet/string/brief'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">require 'xmpp4r'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
require 'yaml'<br><br></span>I've seen that inside the gems folder there are some setup.rb files...<br><span style="font-family: courier new,monospace;">C:\ruby\lib\ruby\gems\1.8\gems\facets-1.7.46\setup.rb</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\ruby\lib\ruby\gems\1.8\gems\xmpp4r-
0.3\setup.rb</span><br style="font-family: courier new,monospace;"><br>I just tried to launch them manually (shouldn't it happen automatically at 'gem install' time?) and then I relaunch my bot:<br><br><span style="font-family: courier new,monospace;">
$ ruby gtakerence.rb<br>GTalkerence: a GTalk ruby bot<br>subscribers:<a href="mailto:paolo.dona@seesaw.it" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paolo.dona@seesaw.it</a>, ...<br>...<br><br>
</span>It does work now... but why? <br><span style="font-family: courier new,monospace;"><br></span>My conclusion is: 'gem install' does not properly terminates the installation of some libraries, I have to launch setup.rb
to finish its job...<br>I thought it was my windows environment, but that happened to a friend of mine on a Mac too...<br> <br>Do you have an explanation for this weird behavior?<br>Paolo<br><br>PS: I've got a fresh ruby
1.8.5 installation (from ruby-one-click-installer).<br><span class="sg"></span><br>-- <br>Paolo Dona'<br>SeeSaw | Another point of view<br><a href="http://www.seesaw.it">http://www.seesaw.it</a><br><a href="mailto:paolo.dona@seesaw.it">
paolo.dona@seesaw.it</a><br>personal <a href="http://paolodona.blogspot.com">http://paolodona.blogspot.com</a>