Memcache扩展未加载!要配置池,必须加载它!MAMP PRO升级到PHP7.2
我最近将MAMP PRO中的PHP版本从PHP7.1.19切换到PHP7.2.20。我目前使用Symfony 3.4。但是,Symfony现在一直抱怨我的memcache扩展丢失: 我读到这可能是因为7.2不再支持memcache?我已经尝试了很多方法来安装memcache for PHP7.2,但都没有成功Memcache扩展未加载!要配置池,必须加载它!MAMP PRO升级到PHP7.2,php,memcached,mamp,php-7.2,mamp-pro,Php,Memcached,Mamp,Php 7.2,Mamp Pro,我最近将MAMP PRO中的PHP版本从PHP7.1.19切换到PHP7.2.20。我目前使用Symfony 3.4。但是,Symfony现在一直抱怨我的memcache扩展丢失: 我读到这可能是因为7.2不再支持memcache?我已经尝试了很多方法来安装memcache for PHP7.2,但都没有成功 pecl install memcache 但是,安装失败,并以以下行结束(致命错误:“zend_config.h”文件未找到): 我还尝试将memcache.so添加到php.ini
pecl install memcache
但是,安装失败,并以以下行结束(致命错误:“zend_config.h”文件未找到):
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-rootw4LXAq/memcache-2.2.7/libtool --mode=compile cc -I/Applications/MAMP/bin/php/php7.2.20/include/php -I. -I/private/tmp/pear/temp/memcache -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootw4LXAq/memcache-2.2.7/include -I/private/tmp/pear/temp/pear-build-rootw4LXAq/memcache-2.2.7/main -I/private/tmp/pear/temp/memcache -I/Applications/MAMP/bin/php/php7.2.20/include/php -I/Applications/MAMP/bin/php/php7.2.20/include/php/main -I/Applications/MAMP/bin/php/php7.2.20/include/php/TSRM -I/Applications/MAMP/bin/php/php7.2.20/include/php/Zend -I/Applications/MAMP/bin/php/php7.2.20/include/php/ext -I/Applications/MAMP/bin/php/php7.2.20/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/memcache/memcache.c -o memcache.lo
mkdir .libs
cc -I/Applications/MAMP/bin/php/php7.2.20/include/php -I. -I/private/tmp/pear/temp/memcache -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootw4LXAq/memcache-2.2.7/include -I/private/tmp/pear/temp/pear-build-rootw4LXAq/memcache-2.2.7/main -I/private/tmp/pear/temp/memcache -I/Applications/MAMP/bin/php/php7.2.20/include/php -I/Applications/MAMP/bin/php/php7.2.20/include/php/main -I/Applications/MAMP/bin/php/php7.2.20/include/php/TSRM -I/Applications/MAMP/bin/php/php7.2.20/include/php/Zend -I/Applications/MAMP/bin/php/php7.2.20/include/php/ext -I/Applications/MAMP/bin/php/php7.2.20/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/memcache/memcache.c -fno-common -DPIC -o .libs/memcache.o
In file included from /private/tmp/pear/temp/memcache/memcache.c:26:
In file included from /Applications/MAMP/bin/php/php7.2.20/include/php/main/php.h:35:
In file included from /Applications/MAMP/bin/php/php7.2.20/include/php/Zend/zend.h:29:
In file included from /Applications/MAMP/bin/php/php7.2.20/include/php/Zend/zend_types.h:27:
/Applications/MAMP/bin/php/php7.2.20/include/php/Zend/zend_portability.h:45:11: fatal error: 'zend_config.h' file not found