Skip to content
mrbrdo edited this page Oct 19, 2014 · 13 revisions

You need:

  • Ruby 1.9 or compatible

  • gcc and be able to compile mruby

    # brew install bison  # for OSX
    # sudo apt-get install bison libbison-dev -y  # Ubuntu
    

First clone the repo:

git clone git://github.com/mrbrdo/mruby_cc.git
cd mruby_cc # ignore any warnings about ruby version

Then install:

bundle install
./configure
make

You can run the test suite:

./mrbcc_compile passing_tests.rb
./runner passing_tests.so

You can also try to compile and run something more simple.

Clone this wiki locally