I\'m install ruby 2.1.2 via rbenv, and rbenv is installed by homebrew on my MAC OSX 10.9.2, ruby global is successful set to 2.1.2, but when i try to run gem install, get so
You need to install the zlib development headers.
xcode-select --install
In OS X 10.9, the command line developer tools are now installed on demand. So after running this also zlib and zlib-devel should be available.