Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Memcache扩展未加载!要配置池,必须加载它!MAMP PRO升级到PHP7.2_Php_Memcached_Mamp_Php 7.2_Mamp Pro - Fatal编程技术网

Memcache扩展未加载!要配置池,必须加载它!MAMP PRO升级到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

我最近将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中。但我不确定从哪里获得PHP7.2的正确memcache.so文件
  • 我已将extension=memcache.so添加到我的php.ini文件MAMP PRO文件编辑模板<7.2.20
  • 请注意,此错误与memcache有关,而与memcached无关。我还没有找到任何关于我的memcache错误的StackOverflow解决方案

    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