dongshi9407 2017-09-04 23:13
浏览 52

使用PHP 7.0的Ubuntu 14.04上的ImageMagick

I have been going around in circles trying to find the correct combination to install Imagick on a Bitnami image running Ubuntu 14.04 and PHP 7.0.

If I try using sudo pecl install imagick, then the build fails with

/tmp/pear/temp/imagick/php_imagick_defs.h:29:31: fatal error: wand/MagickWand.h: No such file or directory
 #  include <wand/MagickWand.h>

I have tried to install with sudo apt-get install imagemagick and then do get an imagick,so that I can include it in my php.ini. However, when I try to use it, I see the following in PHP info and am obviously unable to process anything:

imagemagick number of supported formats 0

After a half day lost trying to do what I thought would take a few minutes, I am reaching out for any and all advice!

Thanks

  • 写回答

2条回答 默认 最新

  • douxiao0400 2017-09-05 00:01
    关注

    In Ubuntu

    1st method:

    First install imagemagick

    sudo apt install imagemagick

    and then install the php-imagick

    sudo apt install php-imagick

    now restart your web server.

    2nd method (using pecl):

    Run

    sudo apt install libmagickwand-dev imagemagick php-dev

    sudo pecl install imagick

    now restart your web server.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度