fatal error: ext/standard/php_smart_str.h: No such file or directory #include "ext/standard/php_smart_str.h" ^ compilation terminated. make: *** [memcache.lo] Error 1 ERROR: `make' failed
拉去memcache擴展php
cd /usr/local/src/ git clone https://github.com/websupport-sk/pecl-memcache
編譯安裝memcache擴展git
cd pecl-memcache/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install Installing shared extensions: /usr/local/php7/lib/php/extensions/no-debug-non-zts-20160303/
上面已經安裝完成memcache擴展,接下來把它加入php.ini中github
vim /etc/php.ini extension_dir = "/usr/local/php7/lib/php/extensions/no-debug-non-zts-20160303/" extension = "memcache.so"
重啓php-fpm使配置生效web
/etc/init.d/php-fpm reload