【发布时间】:2021-09-20 07:31:51
【问题描述】:
最近,我一直在尝试在安装了brew memcached 的 OSX Catalina 上安装 pecl memcache PHP 扩展,每次尝试安装过程时都会出现以下错误:
configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located
我尝试过使用pecl install memcache 和pecl install --configureoptions='with-zlib-dir="path"' memcache 无济于事。它总是得到相同的点并且失败了。
根据我对有关软件包安装的不同主题的评论,问题似乎与pecl install 命令中的-D 选项有关,因为当我从传递参数@ 的源代码进行手动安装时987654329@ 到./configure 命令它就像一个魅力并安装包,但现在不在pecl list 安装包中列出,因此无法卸载。
问题是我需要pecl 来管理软件包的安装,以便能够在环境从项目更改为保护时随时卸载它。
【问题讨论】:
标签: php macos memcached pear pecl