安装pcntl扩展。
1.先看一下PHP版本:
/Applications/MxSrvs/bin/php/bin/php -v
2.然后去PHP: Releases下载对应版本的PHP压缩包,然后解压
cd ext/pcntl
然后
/Applications/MxSrvs/bin/php/bin/phpize
如果报错了
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
准备安装autoconf(如果有安装就不用这一步了)
brew install autoconf
如果brew也没有,执行:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
再次安装autoconfig
rew install autoconf
自动配置安装完成后