Want to subscribe to topics you're interested in?
Become a Member

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 Member

    37
    15
    8
    Jun 1, 2017
    Ratings:
    +20
    Local Time:
    10:57 PM
    1.25.x
    10.4
    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

    54,896
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    8:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. andybond

    andybond Member

    37
    15
    8
    Jun 1, 2017
    Ratings:
    +20
    Local Time:
    10:57 PM
    1.25.x
    10.4
    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

    208
    154
    43
    Mar 21, 2018
    Ratings:
    +236
    Local Time:
    4:27 AM
    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 Member

    37
    15
    8
    Jun 1, 2017
    Ratings:
    +20
    Local Time:
    10:57 PM
    1.25.x
    10.4
    Perfect, thank you.

    Works perfectly now.