Max OS X installs PHP, uses brew installation, always prompts
Checking forGzgets inch-lz yeschecking whether toEnable BC Style PrecisionMath functions ... yeschecking forBZIP2 support ... yeschecking forBZip2 inch defaultPath ... not foundConfigure:error:Please Reinstall the BZIP2 distribution READThis:https://git.io/brew-troubleshooting IfReporting this issue DoSo at( notHomebrew/homebrew): Https://github.com/josegonzalez/homebrew-php/issuesWorkaround, change the installation php56 version. Checking forGzgets inch-lz yeschecking whether toEnable BC Style PrecisionMath functions ... yeschecking forBZIP2 support ... yeschecking forBZip2 inch defaultPath ... not foundConfigure:error:Please Reinstall the BZIP2 distribution READThis:https://git.io/brew-troubleshooting IfReporting this issue DoSo at( notHomebrew/homebrew): Https://github.com/josegonzalez/homebrew-php/issuesAfter installation, php5.so is located in LoadModule php5_module/usr/local/cellar/php56/5.6.9/libexec/apache2/libphp5.so
Reboot start, sudo apachectl restart (can fix YII2 installation hint missing freetype problem)
The above describes the brew install PHP55 error BZIP2 not found solution, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.