[MacRuby-devel] [MacRuby] #281: Bundles pointing to local MacRuby installation instead of embedded

MacRuby ruby-noreply at macosforge.org
Fri Jul 30 12:16:34 PDT 2010


#281: Bundles pointing to local MacRuby installation instead of embedded
-------------------------------------------------------+--------------------
 Reporter:  reborg@…                                   |        Owner:  lsansonetti@…        
     Type:  defect                                     |       Status:  reopened             
 Priority:  major                                      |    Milestone:  MacRuby 0.6          
Component:  MacRuby                                    |   Resolution:                       
 Keywords:  embedded,deploy,installation,distribution  |  
-------------------------------------------------------+--------------------
Changes (by miskomartinka@…):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Hello guys, great work here with macruby/hotcocoa, thank you!

 I am still experiencing this issue. I installed MacRuby 0.6 on my Snow
 Leopard. Then installed hotcocoa with: sudo macgem install hotcocoa.
 Installed version of hotcocoa is 0.5.1.
 Then I did:
 hotcocoa test
 ls test
 macrake

 this works fine then I did

 macrake deploy

 took a while and big app package is build. when I run it it works ok. But
 if I run it on computer which doesn't have MacRuby installed it crashes.
 Also happens when I delete/move /Library/Frameworks/MacRuby.framework on
 my mac I got this error in console:

 30/7/10 9:01:33 PM      [0x0-0xf10f1].com.yourcompany.Test[4050]
 /Users/michal/Code/test/Test.app/Contents/Resources/lib/application.rb:1:in
 `<main>':
 dlopen(/Users/michal/Code/test/Test.app/Contents/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/1.9.0/rubygems.rbo,
 9): Library not loaded:
 /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/libmacruby.dylib
 30/7/10 9:01:33 PM      [0x0-0xf10f1].com.yourcompany.Test[4050]
 Reason: image not found -
 /Users/michal/Code/test/Test.app/Contents/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/1.9.0/rubygems.rbo
 (LoadError)

 I also tried to do install_name_tool solution suggested above but it
 didn't help. Btw.  if I create macruby app in xcode(not using cocoa) it
 works and build it with Embed target it works OK(also with options like
 --no-stdlib, --compile)

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/281#comment:4>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list