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

本文指导在已经编译安装的PHP7环境下,如何安装curl扩展。首先切换到`/root/php7/php-7.2.31/ext/curl`目录,然后通过phpize启动配置过程。接着安装必要的libcurl-devel库,因为缺少它会导致配置错误。使用configure命令配置,指定php-config的路径,并进行编译和安装。
摘要由CSDN通过智能技术生成

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

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

http://www.dengb.com/Linuxjc/1409141.htmlwww.dengb.comtruehttp://www.dengb.com/Linuxjc/1409141.htmlTechArticle在已经编译安装好php7场景下安装curl扩展, 在已经编译安装好php7场景下安装curl扩展 cd /root/php7/php-7.2.31/ext/curl #从php官网下载php源码安装包...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值