Operation 0

Playing With Rubinius

Manfred, Jan 15 2007 at 10:45

Right, so I was trying to play with Rubinius on OSX, after some searching I found out I needed the following dependencies.

gem install rake sydparse RubyInline rspec
port install glib2-devel

After that I had to get the Rubinius source…

svn co http://code.fallingsnow.net/svn/rubinius/trunk rubinius && cd rubinius

Build it…

rake build:shotgun
rake build:kernel
rake build:compiler

And finally try it out…

puts VERSION

./shotgun/rubinius lib/kernel.rbc version.rb

00003: Calling attach_to on  (0x727c98/54) (1).
Fuck. no method found at all, was trying attach_to on .
cpu_instructions.c:317: failed assertion `RTEST(mo)'
Abort trap

I guess I’ll have to try again in a few weeks.

Update:

Apparently Rubinius doesn’t define VERSION yet, so I’ll just puts 'Hello World'.

marksweep.c:132: failed assertion `fields < ms->chunk_size'

An error has occured: Software abort (SIGABRT)

C backtrace:
0x901313c8 <_sigtramp+124> at /usr/lib/libSystem.B.dylib
0x9012dc14  at /usr/lib/libSystem.B.dylib

Ruby backtrace:
  0x6bc000 Class#new+0 in lib/kernel.rb
  0x6bc070 Bytecode::Assembler#parse_line+300 in native/bytecode/assembler.rb
state.h:126: failed assertion `fel < HEADER(in)->fields'