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 am on macOS 11.1
If you get the following after running
phpize
:Then run
brew install autoconf
from this Stack Overflow postI then got an error:
So I ran
brew install zlib
which at first did not fix the error.I ran the command with the zlib path
./configure --with-zlib-dir=/usr/local/opt/zlib