在已经编译安装好php7场景下安装curl扩展

浪子不回头ぞ 提交于 2020-07-28 17:55:52

在已经编译安装好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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!