Cannot get standalone distribution to work with 0.5 or Apr 29 nightly
I'm trying to get a standalone distribution working (one with the MacRuby framework embedded in the app). I've followed the instructions in the tutorial http://www.macruby.com/documentation/tutorial.html and also looked at the discussion in ticket 281, macruby-devel at http://bit.ly/dkKyXT, and carlo.log http://bit.ly/5SdxCq At this point, the app does nothing but pop up "hello world" (using Cocoa directly rather than via hotcocoa). It fails with this message in the console: no such file to load -- ubygems (LoadError) ubygems.rb *is* present in the path that rb_main.rb sets, but the error happens before rb_main.rb is entered. I've tried using install_name_tool in various ways, but it never changes anything. Questions: 1. Is the LoadError caused by something else entirely? 2. Should I need to use install_name_tool with recent nightlies or is macruby_deploy all I should need? 3. Any ideas about how to make it work? ----- Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
Are you trying to compile an Xcode or hotcocoa project? - Matt On Sun, May 2, 2010 at 11:10 AM, Brian Marick <marick@exampler.com> wrote:
I'm trying to get a standalone distribution working (one with the MacRuby framework embedded in the app). I've followed the instructions in the tutorial http://www.macruby.com/documentation/tutorial.html and also looked at the discussion in ticket 281, macruby-devel at http://bit.ly/dkKyXT, and carlo.log http://bit.ly/5SdxCq
At this point, the app does nothing but pop up "hello world" (using Cocoa directly rather than via hotcocoa). It fails with this message in the console:
no such file to load -- ubygems (LoadError)
ubygems.rb *is* present in the path that rb_main.rb sets, but the error happens before rb_main.rb is entered.
I've tried using install_name_tool in various ways, but it never changes anything.
Questions:
1. Is the LoadError caused by something else entirely? 2. Should I need to use install_name_tool with recent nightlies or is macruby_deploy all I should need? 3. Any ideas about how to make it work?
----- Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Xcode. On May 2, 2010, at 1:16 PM, Matt Aimonetti wrote:
Are you trying to compile an Xcode or hotcocoa project?
- Matt
On Sun, May 2, 2010 at 11:10 AM, Brian Marick <marick@exampler.com> wrote: I'm trying to get a standalone distribution working (one with the MacRuby framework embedded in the app). I've followed the instructions in the tutorial http://www.macruby.com/documentation/tutorial.html and also looked at the discussion in ticket 281, macruby-devel at http://bit.ly/dkKyXT, and carlo.log http://bit.ly/5SdxCq
At this point, the app does nothing but pop up "hello world" (using Cocoa directly rather than via hotcocoa). It fails with this message in the console:
no such file to load -- ubygems (LoadError)
ubygems.rb *is* present in the path that rb_main.rb sets, but the error happens before rb_main.rb is entered.
I've tried using install_name_tool in various ways, but it never changes anything.
Questions:
1. Is the LoadError caused by something else entirely? 2. Should I need to use install_name_tool with recent nightlies or is macruby_deploy all I should need? 3. Any ideas about how to make it work?
----- Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
_______________________________________________ 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
----- Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
Hi Brian, Would you have by any chance a RUBYOPT environment variable set to "-r rubygems" in the default environment? Laurent On May 2, 2010, at 11:10 AM, Brian Marick wrote:
I'm trying to get a standalone distribution working (one with the MacRuby framework embedded in the app). I've followed the instructions in the tutorial http://www.macruby.com/documentation/tutorial.html and also looked at the discussion in ticket 281, macruby-devel at http://bit.ly/dkKyXT, and carlo.log http://bit.ly/5SdxCq
At this point, the app does nothing but pop up "hello world" (using Cocoa directly rather than via hotcocoa). It fails with this message in the console:
no such file to load -- ubygems (LoadError)
ubygems.rb *is* present in the path that rb_main.rb sets, but the error happens before rb_main.rb is entered.
I've tried using install_name_tool in various ways, but it never changes anything.
Questions:
1. Is the LoadError caused by something else entirely? 2. Should I need to use install_name_tool with recent nightlies or is macruby_deploy all I should need? 3. Any ideas about how to make it work?
----- Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
You are my hero. I set RUBYOPT in .MacOS/environment.plist long ago. On May 2, 2010, at 3:18 PM, Laurent Sansonetti wrote:
Hi Brian,
Would you have by any chance a RUBYOPT environment variable set to "-r rubygems" in the default environment?
Laurent
----- Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
I see. I believe macruby_main() should always ignore RUBYOPT... I filed: https://www.macruby.org/trac/ticket/673 In the meantime, as a workaround you can try to add this line in your main.m file, just before calling macruby_main(): unsetenv("RUBYOPT"); Laurent On May 2, 2010, at 2:57 PM, Brian Marick wrote:
You are my hero. I set RUBYOPT in .MacOS/environment.plist long ago.
On May 2, 2010, at 3:18 PM, Laurent Sansonetti wrote:
Hi Brian,
Would you have by any chance a RUBYOPT environment variable set to "-r rubygems" in the default environment?
Laurent
----- Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (3)
-
Brian Marick
-
Laurent Sansonetti
-
Matt Aimonetti