I've installed ruby-install like this:
brew install ruby-install
But, when I try to install ruby it fails:
$ ruby-install ruby
>>> Installing ruby 2.1.1 into /Users/mishamoroshko/.rubies/ruby-2.1.1 ...
>>> Installing dependencies for ruby 2.1.1 ...
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package build-essential
!!! Installing dependencies failed!
I'm on Mac OSX 10.9.2.
Any ideas?