如何将php cURL升级到7.36.0版?

zaf*_*rov 8 php linux curl centos

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

我试过了:

yum update php-curl
Run Code Online (Sandbox Code Playgroud)

但我得到了:

Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.t-home.mk
Setting up Update Process
No Packages marked for Update
Run Code Online (Sandbox Code Playgroud)

rez*_*ter 20

使用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
Run Code Online (Sandbox Code Playgroud)

您可以在这里查看最新版本.

这当前更新卷曲从7.19到7.40

  • city-fan repo提供了最新版本,但是不幸的是,它们并不总是在启用了最新的curl选项的情况下编译的。$ rpm -q curl`curl-7.52.1-1.0.cf.rhel7.x86_64` $ curl -I --dns-interface ppp2 stackoverflow.com`curl:(4)由于构建时间的决定,在此libcurl中未找到所需的功能,协议或选项。 (2认同)

car*_*mas 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