travelers-macbook-pro-17:~ traveler$ envMANPATH=/sw/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/man:/sw/lib/perl5/5.8.8/man:/usr/X11R6/manTERM_PROGRAM=Apple_TerminalTERM=xterm-colorSHELL=/bin/bashTMPDIR=/var/folders/Mz/MzO7rWGtG-OReJPiTEkV2E+++TI/-Tmp-/PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwinApple_PubSub_Socket_Render=/tmp/launch-FpI0hE/RenderTERM_PROGRAM_VERSION=240SGML_CATALOG_FILES=/sw/etc/sgml/catalogUSER=travelerCOMMAND_MODE=unix2003SSH_AUTH_SOCK=/tmp/launch-DyRDVy/Listeners__CF_USER_TEXT_ENCODING=0x1F5:0:0PATH=/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/binXML_CATALOG_FILES=/sw/etc/xml/catalogPWD=/Users/travelerLANG=en_US.UTF-8SHLVL=1HOME=/Users/travelerLOGNAME=travelerPGDATA=/usr/local/pgsql/dataINFOPATH=/sw/share/info:/sw/info:/usr/share/infoDISPLAY=/tmp/launch-pQPImT/:0SECURITYSESSIONID=1c4b1df0_=/usr/bin/envtravelers-macbook-pro-17:~ traveler$
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 SchaafOn 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...- JoshOn 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 SchaafOn 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.0It 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 listMacRuby-devel@lists.macosforge.orghttp://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel_______________________________________________MacRuby-devel mailing listMacRuby-devel@lists.macosforge.orghttp://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel_______________________________________________MacRuby-devel mailing listMacRuby-devel@lists.macosforge.orghttp://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel_______________________________________________MacRuby-devel mailing listMacRuby-devel@lists.macosforge.orghttp://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