在CentosOS 7服务器上安装cassandra扩展的php时,我做错了什么?
对于依赖关系,我安装了https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm和https://rpms.remirepo.net/enterprise/remi-release-7.rpm 。 那我呢:
yum install -y --enablerepo=epel,remi,remi-php70 \ php \ php-mbstring \ php-mysqlnd \ php-pecl-apcu \ php-pecl-cassandra
当命令完成时,它总是给我:
Error: Package: php-pecl-cassandra-1.2.2-1.el7.remi.7.0.x86_64 (remi-php70) Requires: libuv.so.0.10()(64bit)
如果我尝试searchlibuv,结果如下(没有0.10版本列出):
yum search --enablerepo=epel,remi,remi-php70 libuv --showduplicates Loaded plugins: fastestmirror, ovl Determining fastest mirrors * base: mirror.nbtelecom.com.br * epel: mirror.globo.com * extras: centos.xpg.com.br * remi: remi.xpg.com.br * remi-php70: remi.xpg.com.br * remi-safe: remi.xpg.com.br * updates: centosp4.centos.org ============================== N/S matched: libuv ============================== 1:libuv-devel-1.9.1-1.el7.x86_64 : Development libraries for libuv 1:libuv-1.9.1-1.el7.x86_64 : Platform layer for node.js 1:libuv-static-1.9.1-1.el7.x86_64 : Platform layer for node.js - static library php-pecl-uv-0.1.0-1.el7.remi.7.0.x86_64 : Libuv wrapper php-pecl-uv-0.1.1-1.el7.remi.7.0.x86_64 : Libuv wrapper php70-php-pecl-uv-0.1.0-1.el7.remi.x86_64 : Libuv wrapper php70-php-pecl-uv-0.1.0-1.el7.remi.x86_64 : Libuv wrapper php70-php-pecl-uv-0.1.1-1.el7.remi.x86_64 : Libuv wrapper php70-php-pecl-uv-0.1.1-1.el7.remi.x86_64 : Libuv wrapper php71-php-pecl-uv-0.1.1-1.el7.remi.x86_64 : Libuv wrapper php71-php-pecl-uv-0.1.1-1.el7.remi.x86_64 : Libuv wrapper php71-php-pecl-uv-0.1.1-2.el7.remi.x86_64 : Libuv wrapper php71-php-pecl-uv-0.1.1-2.el7.remi.x86_64 : Libuv wrapper Name and summary matches only, use "search all" for everything.
事实上,你发现一个问题(应该更好地报告在github上 )
libuv最近已经在EPEL中更新(不兼容的版本)。
存储库中提供的新版本(1.2.2-4)修复了这个问题。
$ rpm -qp --requires php-pecl-cassandra-1.2.2-4.el7.remi.7.0.x86_64.rpm libuv.so.1()(64bit) $ rpm -qp --provides libuv-1.9.1-1.el7.x86_64.rpm libuv.so.1()(64bit)