【问题标题】:Error on installing php-magicwand on RHEL (conflict between php-common)在 RHEL 上安装 php-magicwand 时出错(php-common 之间的冲突)
【发布时间】:2017-06-07 19:30:45
【问题描述】:

我正在尝试在 AWS 上托管的 RHEL7 上安装 ImageMagic(用于 php7)。 运行后

pecl install imagick

我最终得到以下错误

配置:错误:未找到。请提供 MagickWand-config 或 Wand-config 程序的路径。

因此我搜索了magickwand,它返回了一个可能的匹配php-magickwand.x86_64

现在是终极问题。当我尝试通过 yum 安装 php-magickwand 时,我收到以下错误(检查最后第三行)。

Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package php-magickwand.x86_64 0:1.0.9-6.el7 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-magickwand-1.0.9-6.el7.x86_64
--> Processing Dependency: php(api) = 20100412-64 for package: php-magickwand-1.0.9-6.el7.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-42.el7.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Processing Conflict: php70w-common-7.0.19-1.w7.x86_64 conflicts php-common < 7.0
--> Finished Dependency Resolution
Error: php70w-common conflicts with php-common-5.4.16-42.el7.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我在我的机器上搜索了 php-common-5.4,但没有类似的东西。我所有的包都和php7有关(因为我从来没有在这台机器上安装过php55)。

有人可以说明我在哪里可以挖掘更多吗?我至少谷歌了一个小时,似乎没有人落入这个陷阱。

【问题讨论】:

    标签: imagemagick php-7 rhel


    【解决方案1】:

    试试这个,看看它是否有效:

    yum install ImageMagick-devel

    【讨论】:

    • 我做了那个伙伴。但奇怪的是,这就是我得到的“没有可用的 ImageMagick-devel 包”
    • 我已经安装了 ImageMagick (Package ImageMagick-6.7.8.9-15.el7_2.x86_64 already installed and latest version ),我需要的是 ImageMagick-devel
    猜你喜欢
    • 2013-03-31
    • 1970-01-01
    • 2017-07-20
    • 1970-01-01
    • 2014-07-18
    • 2018-08-21
    • 2015-10-13
    • 1970-01-01
    相关资源
    最近更新 更多