在已经编译安装好php7场景下安装curl扩展
cd /root/php7/php-7.2.31/ext/curl #从php官网下载php源码安装包
/usr/local/php746/bin/phpize #已经安装好的phpize的路径
yum install libcurl-devel #没有这个会报错 for cURL 7.10.5 or greater... configure: error: cURL version 7.10.5 or later is required to compile php with cURL suppor
configure --with-php-config=/usr/local/php746/bin/php-config
make
make test
make install