当我尝试使用此命令在xampp上安装memcache时
wget http://pecl.php.net/get/memcache-3.0.8.tgz
tar xf memcache-3.0.8.tgz
cd memcache-3.0.8
/opt/lampp/bin/phpize
./configure --enable-memcache --with-php-config=/opt/lampp/bin/php-config
make && make install
/opt/lampp/lampp restart
我在此行之后收到错误
make&& make install
完整的错误消息
/ bin / bash /memcache-3.0.8/libtool --mode =编译cc -I / opt / lampp / include / php -I。 -I / memcache-3.0.8 -DPHP_ATOM_INC -I / memcache-3.0.8 / include -I / memcache-3.0.8 / main -I / memcache-3.0.8 -I / opt / lampp / include / php -I / opt / lampp / include / php / main -I / opt / lampp / include / php / TSRM -I / opt / lampp / include / php / Zend -I / opt / lampp / include / php / ext -I / opt / lampp / include / php / ext / date / lib -DHAVE_CONFIG_H -g -O2 -c /memcache-3.0.8/memcache.c -o memcache.lo cc -I / opt / lampp / include / php -I。 -I / memcache-3.0.8 -DPHP_ATOM_INC -I / memcache-3.0.8 / include -I / memcache-3.0.8 / main -I / memcache-3.0.8 -I / opt / lampp / include / php -I / opt / lampp / include / php / main -I / opt / lampp / include / php / TSRM -I / opt / lampp / include / php / Zend -I / opt / lampp / include / php / ext -I / opt / lampp / include / php / ext / date / lib -DHAVE_CONFIG_H -g -O2 -c /memcache-3.0.8/memcache.c -fPIC -DPIC -o .libs / memcache.o包含在的文件中 /memcache-3.0.8/php_memcache.h:34:0, 来自/memcache-3.0.8/memcache.c:30:/memcache-3.0.8/memcache_pool.h:45:47:致命错误: ext / standard / php_smart_str_public.h:没有这样的文件或目录
包括“ext / standard / php_smart_str_public.h”
^ compilation terminated. Makefile:193: recipe for target 'memcache.lo' failed make:
*** [memcache.lo]错误1