php error: Class 'Imagick' not found

前端 未结 8 1007
夕颜
夕颜 2020-12-08 13:20

I am getting the error \"Class \'Imagick\' not found\". Somehow I need to make this library accessible to php. I am using Php 5.2.6 on Fedora 8. my php_info has no mention

8条回答
  •  猫巷女王i
    2020-12-08 13:30

    Docker container installation for php:XXX Debian based images:

    RUN apt-get update && apt-get install -y --no-install-recommends libmagickwand-dev
    RUN pecl install imagick && docker-php-ext-enable imagick
    RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* || true
    

提交回复
热议问题