[MacRuby-devel] hotcocoa not loading cocoa framework

Robert Schaaf rwschaaf at comcast.net
Sat Jan 31 05:20:38 PST 2009


Josh,

Disk Utility shows only "Mac OS Extended (Journaled)".  I tried  
"framework 'Cocoa'", but still no bliss.

Then I tried building the examples.  Bingo!  Everything worked.

This inspired me to try running macruby and macirb from my postgres  
account.  Once again, success.

The question now is, what's going on with my shell's interaction with  
macruby?  Why can't the path to '/System/Library/Frameworks/ 
Cocoa.framework' be resolved, if that's the problem?

Anyone have suggestions for this pathological situation?

Bob Schaaf


On Jan 30, 2009, at 10:11 PM, Joshua Ballanco wrote:

> Bob,
>
> Out of curiosity, does the machine that's giving you trouble have a  
> case-sensitive HFS+ filesystem? Just a shot in the dark, but I've  
> had case-sensitivity related issues with Ruby 'require's in the  
> past...
>
> - Josh
>
>
>
> On Jan 30, 2009, at 7:36 PM, Robert Schaaf <rwschaaf at comcast.net>  
> wrote:
>
>> Hmmm,
>>
>> I spoke too soon.  I just loaded MacRuby into a clean environment  
>> on another machine, and /System/Library/Frameworks/  is not in $:  
>> and require 'hotcocoa' works just fine.
>>
>> Back to the drawing board.
>>
>> Bob Schaaf
>>
>>
>> On Jan 30, 2009, at 6:27 PM, Robert Schaaf wrote:
>>
>>> Hello all (again),
>>>
>>> I may have found the root of the problem.  If so, I need a fix.
>>>
>>> Laurent's hint, 'NSBundle.bundleWithPath('/System/Library/ 
>>> Frameworks/ Cocoa.framework').load' succeeds,. Tim Rand's pointing  
>>> out the $: variable was a big help, and here's the result:
>>>
>>> >> $:.each {|sp| puts sp + "\n"}
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> gems/1.9.0/gems/rb-appscript-0.5.1/lib
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> gems/1.9.0/gems/yahoofinance-1.2.2/lib
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> site_ruby/1.9.0
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> site_ruby/1.9.0/universal-darwin9.0
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> site_ruby
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> vendor_ruby/1.9.0
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> vendor_ruby/1.9.0/universal-darwin9.0
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> vendor_ruby
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> 1.9.0
>>> /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/ 
>>> 1.9.0/universal-darwin9.0
>>>
>>> It looks like /System/Library/Frameworks/  is not in my search  
>>> path.  The questions are why not? how do I remedy this? and will  
>>> doing so make it work?
>>>
>>> Even more thanks,
>>>
>>> Bob Schaaf
>>>
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list