Just following post How to create a Ruby extension in C under 5 minutes.
Generate a Makefile
:
ruby extconf.rb
Now compile that C extension:
make
If you want to run an example:
ruby test.rb
Testing RubyInline things go faster, test it by running:
bundle install
ruby rubyinline_example.rb
Testing FFI:
bundle install
ruby ffi_example.rb