<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hey all,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>i get another PATH (or the like) RubyMate versus command line discrepancy.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>i wanted to test osx/cocoa install against previous rubygems installed.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>then i've done (cut'n paste) a small script using both kind of ruby extension :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>#!/usr/bin/env ruby -w</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>require 'osx/cocoa'</DIV><DIV>require 'plist'</DIV><DIV>require 'iphoto2' #<<-- line 6</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>blaahblahblah</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>this script is working well using command line however using RubyMate i got :</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(231, 241, 255); "><FONT class="Apple-style-span" color="#0024CE" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px;">RubyMate r2496 running Ruby v1.8.4.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(231, 241, 255); "><FONT class="Apple-style-span" color="#0024CE" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 10.7px;">>>> ~/work/Ruby/RubyCocoa/test.rb</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10.7px/normal Monaco; background-color: rgb(231, 241, 255); min-height: 15px; "><SPAN class="Apple-style-span" style="line-height: 16px;"><BR></SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(210, 222, 255); "><FONT class="Apple-style-span" color="#ED5100" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"><B>LoadError</B></SPAN></FONT><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;">: no such file to load -- iphoto2</SPAN></FONT></DIV><TABLE cellspacing="0" cellpadding="0" style="padding: 2.0px 0.0px 2.0px 0.0px"><TBODY><TR><TD valign="middle" style="width: 99.0px; padding: 0.0px 2.0px 0.0px 5.0px"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="txmt://open?url=file:///Users/yvon/work/Ruby/RubyCocoa/test.rb&line=6"><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;">method require</SPAN></FONT></A></DIV></TD><TD valign="middle" style="width: 117.0px; padding: 0.0px 2.0px 0.0px 5.0px"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;">in </SPAN></FONT><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"><B>test.rb</B></SPAN></FONT><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"> at line 6</SPAN></FONT></DIV></TD></TR><TR><TD valign="middle" style="width: 99.0px; padding: 0.0px 2.0px 0.0px 5.0px"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="txmt://open?url=file:///Users/yvon/work/Ruby/RubyCocoa/test.rb&line=6"><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"><I>at top level</I></SPAN></FONT></A></DIV></TD><TD valign="middle" style="width: 117.0px; padding: 0.0px 2.0px 0.0px 5.0px"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;">in </SPAN></FONT><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"><B>test.rb</B></SPAN></FONT><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"> at line 6</SPAN></FONT></DIV></TD></TR></TBODY></TABLE><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>something really strange to me i dis install 'plist' and 'iphoto2' at the same time and using the same tool 'rubygems'....</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>ans, they are in the same directory :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[...]</DIV><DIV>/opt/local/lib/ruby/gems/1.8/gems/iphoto2-1.0.1</DIV><DIV>/opt/local/lib/ruby/gems/1.8/gems/iphoto2-1.0.1/iphoto2.rb</DIV><DIV>/opt/local/lib/ruby/gems/1.8/gems/iphoto2-1.0.1/test_iphoto2.rb</DIV><DIV>[...]</DIV><DIV>/opt/local/lib/ruby/gems/1.8/gems/plist-1.0.0</DIV><DIV>/opt/local/lib/ruby/gems/1.8/gems/plist-1.0.0/plist.rb</DIV><DIV>/opt/local/lib/ruby/gems/1.8/gems/plist-1.0.0/test_plist.rb</DIV><DIV>[...]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>in case u've some light about that obscure cavern ;-)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>best,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Yvon</DIV></BODY></HTML>