Re: [MacRuby-devel] hotcocoa not loading cocoa framework
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
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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
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@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
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@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi Robert, Could you print all environment variables from your shell's instance? $ env FYI, the Ruby path ($:) has nothing to do with the Mac OS X framework path. Laurent On Jan 31, 2009, at 5:20 AM, Robert Schaaf wrote:
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@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hello Laurent, Here's a curious story. This afternoon I watched you and Rich Kilmer at RubyConf (very interesting for all that you promised) and was impressed by the macirb app. I tried to build it, but macrake failed. Curiously, this must have given a shock to the heart of my shell, because now hotcocoa loads just fine. Fortuitous perhaps, but sadly, not a learning experience. Since you asked, here's my environment anyway. Thanks again to all, Bob Schaaf PS Let's hope the fix lasts.
travelers-macbook-pro-17:~ traveler$ env MANPATH=/sw/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/ man:/sw/lib/perl5/5.8.8/man:/usr/X11R6/man TERM_PROGRAM=Apple_Terminal TERM=xterm-color SHELL=/bin/bash TMPDIR=/var/folders/Mz/MzO7rWGtG-OReJPiTEkV2E+++TI/-Tmp-/ PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin Apple_PubSub_Socket_Render=/tmp/launch-FpI0hE/Render TERM_PROGRAM_VERSION=240 SGML_CATALOG_FILES=/sw/etc/sgml/catalog USER=traveler COMMAND_MODE=unix2003 SSH_AUTH_SOCK=/tmp/launch-DyRDVy/Listeners __CF_USER_TEXT_ENCODING=0x1F5:0:0 PATH=/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/ usr/X11/bin:/usr/X11R6/bin XML_CATALOG_FILES=/sw/etc/xml/catalog PWD=/Users/traveler LANG=en_US.UTF-8 SHLVL=1 HOME=/Users/traveler LOGNAME=traveler PGDATA=/usr/local/pgsql/data INFOPATH=/sw/share/info:/sw/info:/usr/share/info DISPLAY=/tmp/launch-pQPImT/:0 SECURITYSESSIONID=1c4b1df0 _=/usr/bin/env travelers-macbook-pro-17:~ traveler$
On Jan 31, 2009, at 12:52 PM, Laurent Sansonetti wrote:
Hi Robert,
Could you print all environment variables from your shell's instance?
$ env
FYI, the Ruby path ($:) has nothing to do with the Mac OS X framework path.
Laurent
On Jan 31, 2009, at 5:20 AM, Robert Schaaf wrote:
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@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (3)
-
Joshua Ballanco
-
Laurent Sansonetti
-
Robert Schaaf