brew安装php拓展没有找到指定配置选项

各位大佬们好,

小弟在使用php验证码的时候出现如下错误:

clipboard.png

找到原因是因为缺少gd中的 FreeType 库。

查看phpinfo:

clipboard.png

已经通过brew卸载了现有的php,通过:

brew install homebrew/php/php56 \
--with-freetype \
--without-snmp \
--without-apache \
--with-debug \
--with-fpm \
--with-intl \
--with-homebrew-curl \
--with-homebrew-libxslt \
--with-homebrew-openssl \
--with-imap \
--with-mysql \
--with-tidy

想重新安装以上内容,但是却提示:

clipboard.png

也已经对brew更新过了,还是不行,

求各位大佬们提供几个解决方案指点下小弟!

多谢!

阅读 3.2k
2 个回答

brew install homebrew/php/php56
brew install homebrew/php/php56-gd
其他扩展同理

新手上路,请多包涵

brew install php72 --with-httpd --with-freetype

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题