Wenn Sie PHP auf Max OS
Nach der Installation befindet sich php5.so unter
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZip2 indefault path... notfound
configure: error: Please reinstall the BZip2 distribution
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/josegonzalez/homebrew-php/issuesLoadModule php5_module /usr/local/Cellar/php56/5.6.9/libexec/apache2/libphp5.sochecking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... yes
checking for BZip2 indefault path... notfound
configure: error: Please reinstall the BZip2 distribution
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/josegonzalez/homebrew-php/issuesNeustart, sudo apachectl restart (kann das Problem des fehlenden Freetypes lösen, wenn Sie zur Installation von yii2 aufgefordert werden)
Das Obige stellt die Lösung für den Fehler „BZip2 nicht gefunden“ bei der Brauinstallation vor, einschließlich des relevanten Inhalts. Ich hoffe, dass es für Freunde hilfreich ist, die an PHP-Tutorials interessiert sind.