brew install php70
git clone -b NON_BLOCKING_IO_php7 https://github.com/websupport-sk/pecl-memcache.git
cd pecl-memcache
phpize
./configure
make && make install
vi /usr/local/etc/php/7.0/php.ini
Add extension=memcache.so
under the extensions section.
I have a problem. (Mac OS)
`➜ pecl-memcache git:(NON_BLOCKING_IO_php7) git clone -b NON_BLOCKING_IO_php7 https://github.com/websupport-sk/pecl-memcache.git
Cloning into 'pecl-memcache'...
remote: Counting objects: 1879, done.
remote: Total 1879 (delta 0), reused 0 (delta 0), pack-reused 1879
Receiving objects: 100% (1879/1879), 445.79 KiB | 523.00 KiB/s, done.
Resolving deltas: 100% (1308/1308), done.
➜ pecl-memcache git:(NON_BLOCKING_IO_php7) ✗ cd pecl-memcache
➜ pecl-memcache git:(NON_BLOCKING_IO_php7) phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
➜ pecl-memcache git:(NON_BLOCKING_IO_php7) ./configure
zsh: no such file or directory: ./configure
➜ pecl-memcache git:(NON_BLOCKING_IO_php7) make && make install
make: *** No targets specified and no makefile found. Stop.`