Install ruby-dev and build-essential packages.