dongwu3747 2016-05-30 15:44
浏览 126

如何在Amazon Linux上安装PHP 7的imagick?

I'm trying to install Imagick extension for PHP 7 on Amazon Linux Server.

I typed the following command,

sudo yum install php70-php-pecl-imagick

and I get lots of error messages.

Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: libgdk_pixbuf-2.0.so.0()(64bit)
Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: libHalf.so.6()(64bit)
Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: libImath.so.6()(64bit)
Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: libgvc.so.5()(64bit)
Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: libIex.so.6()(64bit)
Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: libcdt.so.4()(64bit)
Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: librsvg-2.so.2()(64bit)
Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: libgraph.so.4()(64bit)
Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: libIlmImf.so.6()(64bit)
Error: Package: ImageMagick-last-libs-6.9.4.4-1.el6.remi.x86_64 (remi-safe)
       Requires: libIlmThread.so.6()(64bit)

I tried to 'yum install' those required libraries but it says no packages available, so I googled but no clues.

Anybody knows how to install imagick extension for php 7 or how can I install those required libraries?

  • 写回答

3条回答 默认 最新

  • douji6735 2016-05-30 16:04
    关注

    Fist remove the remi-repo for el6 (which you don't use) and will cause serious troubles to your OS if you continue using it.

    rm -rf /etc/yum.repos.d/remi-safe.repo
    

    Then add the correct remi-repo for el7:

    wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
    rpm -Uvh remi-release-7.rpm
    

    Now try running yum again:

    sudo yum install php70-php-pecl-imagick
    
    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题