如何将php cURL升级到7.36.0版?

问题描述 投票:7回答:3

我的CentOS服务器上有php curl 7.19.7,但我需要升级到7.36.0。

我试过了:

yum update php-curl

但我得到了:

Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.t-home.mk
Setting up Update Process
No Packages marked for Update
php linux curl centos
3个回答
19
投票

使用city-fan repo(curl mirror http://curl.haxx.se/download.html#LinuxRedhat的一部分)

rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-2-1.rhel6.noarch.rpm
yum install libcurl

您可以查看最新版本here

这当前更新卷曲从7.19到7.40


5
投票

你可以试试这个,它在RHEL7上对我有用

  1. 创建一个新文件/etc/yum.repos.d/city-fan.repo
  2. 粘贴在其中: [CityFan] name = City Fan Repo baseurl = http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/ enabled = 1 gpgcheck = 0
  3. 跑 yum clean all yum install curl

3
投票

请尝试以下命令:

curl-config --version
sudo rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm
sudo yum install libcurl
© www.soinside.com 2019 - 2024. All rights reserved.