[macOS] Cannot find libz when install php56

After upgraded to 10.12 and xcode8.2, when updating php with homebrew, i got these errors:

/usr/local/bin/phpize: line 61: /usr/local/Library/ENV/4.3/sed: No such file or directory

one way of solution you can find here, https://github.com/Homebrew/homebrew-php/issues/3352

but, for me, follow this step i resolve it. just run:

xcode-select --install

Have fun with macOS!

原文地址:https://www.cnblogs.com/davidhhuan/p/6273589.html