1、安装phpize:
2、下载php源代码
3、解压源代码
4、进入ext/curl目录
5、执行phpize
没有phpize命令
执行 apt-get install php7.3-dev
6、执行./configure:
错误信息:
checking for cURL 7.10.5 or greater... configure: error: cURL version 7.10.5 or later is required to compile php with cURL support
安装:
apt-get install libcurl4-openssl-dev -y
7、make && make install
8、将curl.so 文件拷贝到安装的php目录扩展中
9、配置文件ini中开启curl扩展