[MacRuby-devel] [MacRuby] #692: Embedded MacRuby still tries to use ruby library from /Library/Frameworks

MacRuby ruby-noreply at macosforge.org
Thu May 6 16:50:05 PDT 2010


#692: Embedded MacRuby still tries to use ruby library from /Library/Frameworks
--------------------------------+-------------------------------------------
 Reporter:  mike@…              |       Owner:  lsansonetti@…        
     Type:  defect              |      Status:  new                  
 Priority:  minor               |   Milestone:                       
Component:  MacRuby             |    Keywords:                       
--------------------------------+-------------------------------------------

Comment(by lsansonetti@…):

 As recommended in the tutorial, the following lines can be added in
 rb_main.rb:

 {{{
 $:.map! { |x| x.sub(/^\/Library\/Frameworks/,
 NSBundle.mainBundle.privateFrameworksPath) }
 $:.unshift NSBundle.mainBundle.resourcePath.fileSystemRepresentation
 }}}

 However, as you say, it makes sense for MacRuby to set up its load path
 relative to where MacRuby.framework was loaded. We will address that
 problem.

 Just to be sure, we are talking about Ruby files here? In theory all
 binary files should be re-linked to point to the copy of MacRuby.framework
 inside the .app.

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



More information about the MacRuby-devel mailing list