brew install zlib-devel on Mac OS X Mavericks

Ivan picture Ivan · May 20, 2014 · Viewed 62.7k times · Source

Attempting to install the zlib-devel on mac os x mavericks with homebrew doesn't work:

brew install zlib-devel
Error: No available formula for zlib-devel 
Searching taps...

This install

brew install zlib

works fine though.

Answer

Patrik Bego picture Patrik Bego · Nov 13, 2014

Just run in the command line:

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 (no need for brew install zlib...)