如何安装内存缓存扩展程序(php72,macos Catalina)

问题描述 投票:0回答:1

我无法在MacOs Catalina php 7.2上安装memcache(不是memcached)扩展名>

checking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located
ERROR: `/private/tmp/pear/temp/memcache/configure --with-php-config=/usr/local/opt/[email protected]/bin/php-config --enable-memcache-session=yes' failed

我尝试

pecl install memcache --with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/include/zlib.h

但是

Attempting to discover channel "--with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/include"...
Attempting fallback to https instead of http on channel "--with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/include"...
unknown channel "--with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/include" in "--with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/include/zlib.h"
invalid package name/package file "--with-zlib-dir=/usr/local/Cellar/zlib/1.2.11/include/zlib.h"

[我无法在MacOs Catalina上安装memcache(不是memcached)扩展,PHP 7.2检查zlib的位置...配置:错误:memcache支持需要ZLIB。使用--with-zlib-dir =

到...
macos memcached php-7.2 macos-catalina
1个回答
0
投票

您正在关闭...您的路径不应是头文件,而应是目录。另外,pecl install不会将脚本中的命令行参数传递给./configure命令,因此您必须自己执行:

© www.soinside.com 2019 - 2024. All rights reserved.