brew install homebrew/php/php56 --with-apache

报错:
checking if the location of ZLIB install directory is defined... no
configure: error: Cannot find libz

解决:
xcode-select --install 五分钟之后ok

ok

note:
mac自带了一个版本的PHP, 自带的Apache关联了PHP,可以跑通,但是brew不能安装这个自带版本的PHP扩展
当brew install someextension 的时候,它会自动的安装一个版本的PHP,所有就把Apache关联到这个新安装的PHP版本上

相关文章:

  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-12-18
  • 2021-12-21
  • 2022-03-08
相关资源
相似解决方案