【问题标题】:Can't install php imap extension on centos 7无法在 centos 7 上安装 php imap 扩展
【发布时间】:2016-06-23 15:16:44
【问题描述】:

运行命令

sudo yum install php56w-imap

给我输出:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php56w-imap.x86_64 0:5.6.22-1.w7 will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php56w-imap-5.6.22-1.w7.x86_64
--> Finished Dependency Resolution
Error: Package: php56w-imap-5.6.22-1.w7.x86_64 (webtatic)
           **Requires: libc-client.so.2007()(64bit)**
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我正在避免任何编译,所以编译 php 的 --libdir=/usr/lib64 选项不是我想要的。 另外,我找不到该库的任何有效下载链接。 请帮忙!

【问题讨论】:

    标签: centos7 php-imap


    【解决方案1】:

    我找到了:

    https://www.rpmfind.net/linux/rpm2html/search.php?query=libc-client.so.2007()(64bit)

    我尝试安装的是 libc-client-devel,但由于依赖而失败。有了这个 libc-client,一切正常

    【讨论】:

      【解决方案2】:

      只需先使用命令安装:

      yum install php-imap*
      

      【讨论】:

        【解决方案3】:

        我收到一个 SE_UID not found 错误。

        我刚刚偶然发现https://centos.pkgs.org/7/ius-x86_64/php72u-imap-7.2.17-1.ius.centos7.x86_64.rpm.html

        然后我跑了:

        yum install php72u-imap
        

        我还使用 echo phpinfo() 创建了一个 php 文件,并看到 IMAP 现在显示为一个单独的部分。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2015-04-28
          • 2016-09-29
          • 1970-01-01
          • 2019-02-14
          • 1970-01-01
          • 1970-01-01
          • 2021-01-03
          相关资源
          最近更新 更多