[macruby] #78: using rake => ./rbconfig.rb:7: ruby lib version (1.9.0) doesn't match executable version (1.8.6) (RuntimeError)
#78: using rake => ./rbconfig.rb:7: ruby lib version (1.9.0) doesn't match executable version (1.8.6) (RuntimeError) ----------------------------------------+----------------------------------- Reporter: stephen.bannasch@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- {{{ $ svn info Path: . URL: http://svn.macosforge.org/repository/ruby/MacRuby/branches/testing Repository Root: http://svn.macosforge.org/repository/ruby Repository UUID: 23306eb0-4c56-4727-a40e-e92c0eb68959 Revision: 295 Node Kind: directory Schedule: normal Last Changed Author: lsansonetti@apple.com Last Changed Rev: 295 Last Changed Date: 2008-06-16 21:04:32 -0400 (Mon, 16 Jun 2008) [src-branch-testing]$ rake (in /Users/stephen/dev/macruby/src-branch-testing) /usr/bin/ruby -I. tool/compile_prelude.rb prelude.rb miniprelude.c.new ./rbconfig.rb:7: ruby lib version (1.9.0) doesn't match executable version (1.8.6) (RuntimeError) from /Library/Ruby/Site/1.8/rubygems.rb:60:in `require' from /Library/Ruby/Site/1.8/rubygems.rb:60 from /Library/Ruby/Site/1.8/ubygems.rb:10:in `require' from /Library/Ruby/Site/1.8/ubygems.rb:10 rake aborted! Command failed with status (1): [/usr/bin/ruby -I. tool/compile_prelude.rb ...] /Users/stephen/dev/macruby/src-branch-testing/rakefile:215 (See full trace by running task with --trace) }}} -- Ticket URL: <http://ruby.macosforge.org/trac/ticket/78> macruby <http://ruby.macosforge.org/>
#78: using rake => ./rbconfig.rb:7: ruby lib version (1.9.0) doesn't match executable version (1.8.6) (RuntimeError) ----------------------------------------+----------------------------------- Reporter: stephen.bannasch@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Resolution: Keywords: | ----------------------------------------+----------------------------------- Comment (by stephen.bannasch@gmail.com): It seems that the build script in the Rakefile requires ruby 1.9 to operate. I was able to build macruby successfully by replacing the three locations in the Rakefile where the path to a ruby executable is specified like this: {{{/usr/bin/ruby}}} with the path to a recent (revision 17368) ruby 1.9 binary on my system: {{{/Users/stephen/dev/ruby1.9/bin/ruby19}}} On my MacOS 10.5.3 system: {{{/usr/bin/ruby -> ../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby}}} It would be nice to be able to build macruby without having 1.9 installed. -- Ticket URL: <http://ruby.macosforge.org/trac/ticket/78#comment:1> macruby <http://ruby.macosforge.org/>
#78: using rake => ./rbconfig.rb:7: ruby lib version (1.9.0) doesn't match executable version (1.8.6) (RuntimeError) ----------------------------------------+----------------------------------- Reporter: stephen.bannasch@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Resolution: Keywords: | ----------------------------------------+----------------------------------- Comment (by lsansonetti@apple.com): It should definitely build with 1.8 Ruby. I think it failed because you upgraded from an existing testing branch, if you start from a fresh clean branch it should work. (It's clearly a bug in the Rakefile.) For example, does the following line work for you? $ /usr/bin/ruby tool/compile_prelude.rb prelude.rb miniprelude.c.new (Notice that -I. is not passed anymore.) -- Ticket URL: <http://ruby.macosforge.org/trac/ticket/78#comment:2> macruby <http://ruby.macosforge.org/>
#78: using rake => ./rbconfig.rb:7: ruby lib version (1.9.0) doesn't match executable version (1.8.6) (RuntimeError) ----------------------------------------+----------------------------------- Reporter: stephen.bannasch@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Resolution: Keywords: | ----------------------------------------+----------------------------------- Comment (by stephen.bannasch@gmail.com): On a fresh checkout in a new dir rake and rake install work however I get the same error when running rake a second time. Here are the steps (the dir src does not exist at the start): {{{ svn co http://svn.macosforge.org/repository/ruby/MacRuby/branches/testing src cd src rake sudo rake install rake (in /Users/stephen/dev/macruby/src) /usr/bin/ruby -I. tool/compile_prelude.rb prelude.rb miniprelude.c.new ./rbconfig.rb:6: ruby lib version (1.9.0) doesn't match executable version (1.8.6) (RuntimeError) from /Library/Ruby/Site/1.8/rubygems.rb:60:in `require' from /Library/Ruby/Site/1.8/rubygems.rb:60 from /Library/Ruby/Site/1.8/ubygems.rb:10:in `require' from /Library/Ruby/Site/1.8/ubygems.rb:10 rake aborted! Command failed with status (1): [/usr/bin/ruby -I. tool/compile_prelude.rb ...] /Users/stephen/dev/macruby/src/rakefile:215 (See full trace by running task with --trace) }}} The same problem exists even if I run {{{rake clean}}} or {{{rake clean:ext}}} before running {{{rake}}}. -- Ticket URL: <http://ruby.macosforge.org/trac/ticket/78#comment:3> macruby <http://ruby.macosforge.org/>
#78: using rake => ./rbconfig.rb:7: ruby lib version (1.9.0) doesn't match executable version (1.8.6) (RuntimeError) ----------------------------------------+----------------------------------- Reporter: stephen.bannasch@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Resolution: Keywords: | ----------------------------------------+----------------------------------- Comment (by stephen.bannasch@gmail.com): Running: {{{/usr/bin/ruby tool/compile_prelude.rb prelude.rb miniprelude.c.new}}} does work. -- Ticket URL: <http://ruby.macosforge.org/trac/ticket/78#comment:4> macruby <http://ruby.macosforge.org/>
#78: using rake => ./rbconfig.rb:7: ruby lib version (1.9.0) doesn't match executable version (1.8.6) (RuntimeError) ----------------------------------------+----------------------------------- Reporter: stephen.bannasch@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.3 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------------+----------------------------------- Changes (by lsansonetti@apple.com): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.3 Comment: Thanks for the verification, I committed the Rakefile fix as r296/trunk, and also to the testing branch. -- Ticket URL: <http://ruby.macosforge.org/trac/ticket/78#comment:5> macruby <http://ruby.macosforge.org/>
participants (1)
-
macruby