Read this rbenv/ruby-build#550 if you're trying to install patch on Mac OS X 10.9
with homebrew
rbenv install -f --patch 2.1.1 < <(curl -sSL https://gist.githubusercontent.com/TimothyKlim/11043852/raw/fe228cf0524873c992fa5c31b1173537dca76a2c/patch.diff)