项目要使用到几个拓展,因为本地没有安装到,所以花了一下午的时间安装好了,折腾这么久记录一下方便以后查找翻阅
参考网上的博客安装顺利完成
https://blog.csdn.net/Leadyang/article/details/89966697
首先进入我下载的php版本的/php-7.3.28/ext/openssl 将 mv config0.m4 config.m4
然后
sudo /usr/local/Cellar/php/7.3.12/bin/phpize(需要超管权限)
接下来
./configure --with-openssl=/usr/local/Cellar/openssl@1.1/1.1.1h/
sudo ./configure --with-openssl=/usr/local/Cellar/openssl@1.1/1.1.1h/ --with-php-config=/usr/local/Cellar/php/7.3.12/bin/php-config
make && make install
安装完成
重启PHP
php -m 发现拓展模块加载进来