So I didn't really "remove" Ruby, I simply renamed the files/folders to avoid conflict between macports Ruby and OSX Ruby. I believe this is something very common and it might create issues for other people.
However, even after I changed the rake file, the build failed because of miniruby: https://gist.github.com/8fba52b6170b47e9b54c :( I don't want to have to deal with 2 Ruby 1.8.x (Ruby macports and Ruby OSX), Ruby 1.9, JRuby :( Maybe I should stick to Ruby from OSX and suffer through the fact that I can't choose what version to use :( -Matt On Tue, Nov 11, 2008 at 1:36 PM, Laurent Sansonetti <[EMAIL PROTECTED]>wrote: > Ouch, if you removed /usr/bin/ruby then yes it's going to fail :) > Either you manually edit the Rakefile and change the paths, or you > re-install your OS. Removing the default Ruby install is a very very bad > idea (as removing anything bundled with the OS), because some OS > functionality relies on it. > > Laurent > > On Nov 11, 2008, at 6:45 AM, Matt Aimonetti wrote: > > Didn't work. > > I believe the problem is that I removed MacOSX default Ruby install in > favor of the macports version (maybe not a wise move) and the rake task > seems to have a hard coded path to /usr/bin/ruby > > Command failed with status (127): [/usr/bin/ruby tool/compile_prelude.rb > prel...] > > Line 269 of Rakefile: > sh "/usr/bin/ruby tool/compile_prelude.rb prelude.rb miniprelude.c.new" > Line 293 > sh("/usr/bin/ruby -Ks tool/insns2vm.rb #{inc_to_gen.join(' ')}") > Line 296 > sh("/usr/bin/ruby -n tool/node_name.rb include/ruby/node.h > > node_name.inc") > > I edited the 3 lines above to shell out to ruby (without hardcoding the > path) and everything seems ok until miniruby dies. > > https://gist.github.com/8fba52b6170b47e9b54c > > Thanks, > > -Matt > > > On Mon, Nov 10, 2008 at 8:06 PM, Laurent Sansonetti <[EMAIL PROTECTED] > > wrote: > >> Rich and I got this problem a while ago, I was unable to find the root of >> it and removing /Library/Frameworks/MacRuby.framework fixed it. >> The problem was miniruby crashing when loading the strscan.bundle C >> extension inside the dyld. I initially thought that it was a local issue >> when copying the file but it looks like it is not. >> >> I will try to reproduce it here. In the meantime I suspect that >> removing /Library/Frameworks/MacRuby.framework should make it disappear. >> >> Laurent >> >> On Nov 9, 2008, at 11:42 PM, Matt Aimonetti wrote: >> >> I just did: >> >> $ /opt/local/bin/ruby tool/compile_prelude.rb prelude.rb miniprelude.c.new >> >> and nothing happens, nothing in the console either. I have Ruby 1.8.6 >> installed by macports, could that cause a problem? >> >> -Matt >> >> On Sun, Nov 9, 2008 at 2:54 PM, Laurent Sansonetti <[EMAIL PROTECTED] >> > wrote: >> >>> Mmh I suspect it is the broken strscan.bundle problem again. >>> >>> What does happen if you type the following from the source directory? >>> >>> $ /usr/bin/ruby tool/compile_prelude.rb prelude.rb miniprelude.c.new >>> >>> If you get a segmentation fault, could you attach the crash log from >>> Console.app? >>> >>> Thanks, >>> Laurent >>> >>> >>> On Nov 9, 2008, at 10:24 AM, Matt Aimonetti wrote: >>> >>> [EMAIL PROTECTED] trunk]$ rake --trace >>>> (in /Users/mattetti/src/MacRuby/trunk) >>>> ** Invoke default (first_time) >>>> ** Invoke all (first_time) >>>> ** Invoke macruby (first_time) >>>> ** Invoke macruby:build (first_time) >>>> ** Invoke macruby:dylib (first_time) >>>> ** Invoke rbconfig (first_time) >>>> ** Invoke miniruby (first_time) >>>> ** Invoke objects (first_time) >>>> ** Invoke config_h (first_time) >>>> ** Execute config_h >>>> ** Invoke dtrace_h (first_time) >>>> ** Execute dtrace_h >>>> ** Execute objects >>>> /usr/bin/ruby tool/compile_prelude.rb prelude.rb miniprelude.c.new >>>> rake aborted! >>>> Command failed with status (127): [/usr/bin/ruby >>>> tool/compile_prelude.rb prel...] >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:971:in `sh' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in `call' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in `sh' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:in `sh' >>>> /Users/mattetti/src/MacRuby/trunk/rakefile:269 >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in >>>> `execute' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in >>>> `execute' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in >>>> `invoke_prerequisites' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in >>>> `invoke_with_call_chain' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in >>>> `invoke_task' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in >>>> `top_level' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in >>>> `top_level' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in >>>> `standard_exception_handling' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in >>>> `top_level' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in >>>> `standard_exception_handling' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run' >>>> /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 >>>> /opt/local/bin/rake:19:in `load' >>>> /opt/local/bin/rake:19 >>>> >>>> >>>> any idea what's going on? >>>> >>>> -Matt >>>> _______________________________________________ >>>> 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 > > > > _______________________________________________ > 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