Welcome to Centmin Mod Community
Register Now

PHP-FPM Php7.2 or php7.3 to 7.4 imagick error

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by andybond, Feb 16, 2020.

  1. andybond

    andybond New Member

    25
    8
    3
    Jun 1, 2017
    Ratings:
    +10
    Local Time:
    3:11 PM
    1.13.4
    10
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed:123.09beta01
    • Nginx Version Installed:1.17.8
    • PHP Version Installed: <7.4.x
    • MariaDB MySQL Version Installed: 10.3
    • When was last time updated Centmin Mod code base ? : 2 minutes ago
    • Persistent Config:
      Code (Text):
      ENABLE_MARIADBTENTWOUPGRADE='y'
      ENABLE_MARIADBTENTHREEUPGRADE='y'
      PHPFINFO='y'
      

    When performing a upgrade via option 5) in the centmin menu I have a
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/pecl/20170718/imagick.so' (tried: /usr/local/lib/php/pecl/20170718/imagick.so (dlopen(/usr/local/lib/php/pecl/20170718/imagick.so, 9): Symbol not found: __zval_ptr_dtor
    Referenced from: /usr/local/lib/php/pecl/20170718/imagick.so

    Upon downgrade to any 7.2.x or 7.3.x version the error is gone.


    Advice or tips are appreciated.
     
  2. eva2000

    eva2000 Administrator Staff Member

    47,474
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:11 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  3. andybond

    andybond New Member

    25
    8
    3
    Jun 1, 2017
    Ratings:
    +10
    Local Time:
    3:11 PM
    1.13.4
    10
    I tried your recommendations but it never worked and I could not use pastebin as my output was too large. So used privatebin :

    PrivateBin


    Appreciate your time on this :)
     
  4. brijendrasial

    brijendrasial Active Member

    139
    111
    43
    Mar 21, 2018
    Ratings:
    +170
    Local Time:
    8:41 PM
    1.13.9
    10.0.22-MariaDB
    Check if ImageMagick-devel is installed if not install it

    yum install ImageMagick-devel -y

    After that recompile php again.

    Never mind leave it but ImageMagick6-devel is already installed using remi repo.

    your installation fails here

    checking ImageMagick MagickWand API configuration program... checking Testing /usr/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/Wand-config... Doesn't exist
    checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/local/bin/Wand-config... Doesn't exist
    checking Testing /usr/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/Wand-config... Doesn't exist
    checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/sbin/bin/Wand-config... Doesn't exist
    checking Testing /opt/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/bin/Wand-config... Doesn't exist
    checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/local/bin/Wand-config... Doesn't exist
    configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    make: *** No targets specified and no makefile found. Stop.
    make: *** No rule to make target `install'. Stop.

    ImageMagick6-devel is reponsible for it.

    You need to check if its installed

    yum list installed | grep ImageMagick6-devel

    If there is output then install it or else you can install it manually

    yum --enablerepo=remi install ImageMagick6-devel --disableplugin=versionlock

    then you can recompile php again
     
    Last edited: Feb 17, 2020
  5. andybond

    andybond New Member

    25
    8
    3
    Jun 1, 2017
    Ratings:
    +10
    Local Time:
    3:11 PM
    1.13.4
    10
    Perfect, thank you.

    Works perfectly now.