欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

brew install php55 报错 BZip2 not found解决办法

程序员文章站 2024-01-31 15:27:04
...
max os x安装 php,使用brew 安装,一直提示 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/issues解决办法,换安装 php56 版本。 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/issues安装后,php5.so 位于 LoadModule php5_module /usr/local/Cellar/php56/5.6.9/libexec/apache2/libphp5.so重启启动 ,sudo apachectl restart (可以解决yii2 安装提示缺少freetype 的问题)

以上就介绍了brew install php55 报错 BZip2 not found解决办法,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。