【发布时间】: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