brew安装php拓展没有找到指定配置选项
ringa_lee
ringa_lee 2017-06-26 10:49:12
[PHP讨论组]

各位大佬们好,

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

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

查看phpinfo:

已经通过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

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

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

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

多谢!

ringa_lee
ringa_lee

ringa_lee

全部回复(1)
ringa_lee

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号