Join the community today
Become a Member

unable to load dynamic libary imageick.so on php 7.4

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by hrudi, Sep 19, 2020.

Tags:
  1. hrudi

    hrudi New Member

    4
    0
    1
    Sep 19, 2020
    Ratings:
    +1
    Local Time:
    4:33 AM
    1.19.2
    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.19.2
    • PHP Version Installed: 7.4.5
    • MariaDB MySQL Version Installed: 10.0.x
    • When was last time updated Centmin Mod code base ? : several minutes ago
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      MARCH_TARGETNATIVE='n'
      LETSENCRYPT_DETECT='y'
      
    I have a problem with imagick.so and i have tried to solve the problem by following this PHP-FPM - unable to load dynamic libary imageick.so?
    PHP-FPM - Php7.2 or php7.3 to 7.4 imagick error
    [Solved] - New install: Unable to load dynamic library 'imagick.so'


    but all not working for me, the imagick.so error still appear like this:
    Code (Text):
    [07:11][root@xxx.net ~]# php -v
    PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    
    


    Code (Text):
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 14
    --------------------------------------------------------
    
    ---------------------------------------------
    checking /etc/selinux/config
    SELinux already disabled
    SELINUX=disabled
    ---------------------------------------------
    



    anyone have solution for this?
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    7:33 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    your show centmin.sh menu option 14 being ran not option 15 for imagick ? did you run centmin.sh menu option 14 or 15 ?
     
  3. hrudi

    hrudi New Member

    4
    0
    1
    Sep 19, 2020
    Ratings:
    +1
    Local Time:
    4:33 AM
    1.19.2
    10
    Yes, i already run option 15 several times but no one is working to install imagick.

    here the result.
    Code (Text):
    
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 15
    --------------------------------------------------------
    Check for php extensions
    
    Check for ImageMagicK System Updates (YUM)
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirrors.usinternet.com
     * centos-sclo-rh: ftpmirror.your.org
     * centos-sclo-sclo: mirror.steadfastnet.com
     * epel: mirror.steadfastnet.com
     * extras: mirror.genesisadaptive.com
     * remi: mirror.team-cymru.com
     * updates: centos.mirror.constant.com
    Package LibRaw-0.19.4-1.el7.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package ImageMagick.x86_64 0:6.9.11.29-1.el7.remi will be installed
    ---> Package ImageMagick-c++.x86_64 0:6.9.11.9-1.el7.remi will be updated
    ---> Package ImageMagick-c++.x86_64 0:6.9.11.29-1.el7.remi will be an update
    ---> Package ImageMagick-c++-devel.x86_64 0:6.9.11.29-1.el7.remi will be installed
    ---> Package ImageMagick-devel.x86_64 0:6.9.11.29-1.el7.remi will be installed
    --> Processing Dependency: libwebp7-devel(x86-64) for package: ImageMagick-devel-6.9.11.29-1.el7.remi.x86_64
    ---> Package ImageMagick-libs.x86_64 0:6.9.11.9-1.el7.remi will be updated
    ---> Package ImageMagick-libs.x86_64 0:6.9.11.29-1.el7.remi will be an update
    --> Running transaction check
    ---> Package libwebp7-devel.x86_64 0:1.0.3-1.el7.remi will be installed
    --> Processing Conflict: ImageMagick7-7.0.10.29-1.el7.remi.x86_64 conflicts ImageMagick --> Finished Dependency Resolution
    Error: ImageMagick7 conflicts with ImageMagick-6.9.11.29-1.el7.remi.x86_64
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    
    real  0m17.222s
    user  0m5.363s
    sys  0m0.873s
    
    Loaded plugins: fastestmirror, priorities, versionlock
    Deleting versionlock for: 0:LibRaw-0.19.4-1.el7.*
    versionlock deleted: 1
    Loaded plugins: fastestmirror, priorities, versionlock
    Deleting versionlock for: 0:ImageMagick-libs-6.9.11.9-1.el7.remi.*
    Deleting versionlock for: 0:ImageMagick-c++-6.9.11.9-1.el7.remi.*
    versionlock deleted: 2
    Loaded plugins: fastestmirror, priorities, versionlock
    Adding versionlock on: 0:LibRaw-0.19.4-1.el7
    Adding versionlock on: 0:ImageMagick-libs-6.9.11.9-1.el7.remi
    Adding versionlock on: 0:ImageMagick-c++-6.9.11.9-1.el7.remi
    versionlock added: 3
    
    PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    7.4
    0
    /opt/rh/devtoolset-8/root/usr/bin/gcc
    /opt/rh/devtoolset-8/root/usr/bin/g++
    
      -march=                         skylake-avx512
      -mavx                           [enabled]
      -mavx2                          [enabled]
      -mavx256-split-unaligned-load   [disabled]
      -mavx256-split-unaligned-store   [disabled]
      -mavx5124fmaps                  [disabled]
      -mavx5124vnniw                  [disabled]
      -mavx512bitalg                  [disabled]
      -mavx512bw                      [enabled]
      -mavx512cd                      [enabled]
      -mavx512dq                      [enabled]
      -mavx512er                      [disabled]
      -mavx512f                       [enabled]
      -mavx512ifma                    [disabled]
      -mavx512pf                      [disabled]
      -mavx512vbmi                    [disabled]
      -mavx512vbmi2                   [disabled]
      -mavx512vl                      [enabled]
      -mavx512vnni                    [disabled]
      -mavx512vpopcntdq               [disabled]
      -mpclmul                        [enabled]
      -mprefer-vector-width=          256
      -msse                           [enabled]
      -msse2                          [enabled]
      -msse2avx                       [disabled]
      -msse3                          [enabled]
      -msse4                          [enabled]
      -msse4.1                        [enabled]
      -msse4.2                        [enabled]
      -msse4a                         [disabled]
      -msse5                          
      -msseregparm                    [disabled]
      -mssse3                         [enabled]
      -mtune-ctrl=                    
      -mtune=                         skylake-avx512
      Known preferred register vector length (to use with the -mprefer-vector-width= option)
    
      -march=                         x86-64
      -mavx                           [disabled]
      -mavx2                          [disabled]
      -mavx256-split-unaligned-load   [enabled]
      -mavx256-split-unaligned-store   [enabled]
      -mavx5124fmaps                  [disabled]
      -mavx5124vnniw                  [disabled]
      -mavx512bitalg                  [disabled]
      -mavx512bw                      [disabled]
      -mavx512cd                      [disabled]
      -mavx512dq                      [disabled]
      -mavx512er                      [disabled]
      -mavx512f                       [disabled]
      -mavx512ifma                    [disabled]
      -mavx512pf                      [disabled]
      -mavx512vbmi                    [disabled]
      -mavx512vbmi2                   [disabled]
      -mavx512vl                      [disabled]
      -mavx512vnni                    [disabled]
      -mavx512vpopcntdq               [disabled]
      -mpclmul                        [disabled]
      -mprefer-vector-width=          none
      -msse                           [enabled]
      -msse2                          [enabled]
      -msse2avx                       [disabled]
      -msse3                          [disabled]
      -msse4                          [disabled]
      -msse4.1                        [disabled]
      -msse4.2                        [disabled]
      -msse4a                         [disabled]
      -msse5                          
      -msseregparm                    [disabled]
      -mssse3                         [disabled]
      -mtune-ctrl=                    
      -mtune=                         generic
      Known preferred register vector length (to use with the -mprefer-vector-width= option)
    
      -march=                         skylake-avx512        |    -march=                         x86-64
      -mavx                           [enabled]        |    -mavx                           [disabled]
      -mavx2                          [enabled]        |    -mavx2                          [disabled]
      -mavx256-split-unaligned-load   [disabled]        |    -mavx256-split-unaligned-load   [enabled]
      -mavx256-split-unaligned-store   [disabled]        |    -mavx256-split-unaligned-store   [enabled]
      -mavx512bw                      [enabled]        |    -mavx512bw                      [disabled]
      -mavx512cd                      [enabled]        |    -mavx512cd                      [disabled]
      -mavx512dq                      [enabled]        |    -mavx512dq                      [disabled]
      -mavx512f                       [enabled]        |    -mavx512f                       [disabled]
      -mavx512vl                      [enabled]        |    -mavx512vl                      [disabled]
      -mpclmul                        [enabled]        |    -mpclmul                        [disabled]
      -mprefer-vector-width=          256          |    -mprefer-vector-width=          none
      -msse3                          [enabled]        |    -msse3                          [disabled]
      -msse4                          [enabled]        |    -msse4                          [disabled]
      -msse4.1                        [enabled]        |    -msse4.1                        [disabled]
      -msse4.2                        [enabled]        |    -msse4.2                        [disabled]
      -mssse3                         [enabled]        |    -mssse3                         [disabled]
      -mtune=                         skylake-avx512        |    -mtune=                         generic
    
      -march=                         skylake-avx512        |    -march=                         x86-64
      -mavx                           [enabled]        |    -mavx                           [disabled]
      -mavx2                          [enabled]        |    -mavx2                          [disabled]
      -mavx256-split-unaligned-load   [disabled]        |    -mavx256-split-unaligned-load   [enabled]
      -mavx256-split-unaligned-store   [disabled]        |    -mavx256-split-unaligned-store   [enabled]
      -mavx512bw                      [enabled]        |    -mavx512bw                      [disabled]
      -mavx512cd                      [enabled]        |    -mavx512cd                      [disabled]
      -mavx512dq                      [enabled]        |    -mavx512dq                      [disabled]
      -mavx512f                       [enabled]        |    -mavx512f                       [disabled]
      -mavx512vl                      [enabled]        |    -mavx512vl                      [disabled]
      -mpclmul                        [enabled]        |    -mpclmul                        [disabled]
      -msse4                          [enabled]        |    -msse4                          [disabled]
      -msse4.1                        [enabled]        |    -msse4.1                        [disabled]
      -msse4.2                        [enabled]        |    -msse4.2                        [disabled]
      -mtune=                         skylake-avx512        |    -mtune=                         generic
    
      -march=                         x86-64
      -mavx                           [enabled]
      -mavx2                          [enabled]
      -mavx256-split-unaligned-load   [enabled]
      -mavx256-split-unaligned-store   [enabled]
      -mavx5124fmaps                  [disabled]
      -mavx5124vnniw                  [disabled]
      -mavx512bitalg                  [disabled]
      -mavx512bw                      [disabled]
      -mavx512cd                      [disabled]
      -mavx512dq                      [disabled]
      -mavx512er                      [disabled]
      -mavx512f                       [disabled]
      -mavx512ifma                    [disabled]
      -mavx512pf                      [disabled]
      -mavx512vbmi                    [disabled]
      -mavx512vbmi2                   [disabled]
      -mavx512vl                      [disabled]
      -mavx512vnni                    [disabled]
      -mavx512vpopcntdq               [disabled]
      -mpclmul                        [enabled]
      -mprefer-vector-width=          none
      -msse                           [enabled]
      -msse2                          [enabled]
      -msse2avx                       [disabled]
      -msse3                          [enabled]
      -msse4                          [enabled]
      -msse4.1                        [enabled]
      -msse4.2                        [enabled]
      -msse4a                         [disabled]
      -msse5                          
      -msseregparm                    [disabled]
      -mssse3                         [enabled]
      -mtune-ctrl=                    
      -mtune=                         generic
      Known preferred register vector length (to use with the -mprefer-vector-width= option)
    
    GCC_NONNATIVEFLAGS= -mavx -mavx2 -mpclmul -msse4 -msse4.1 -msse4.2
    
    *************************************************
    * Installing imagick PHP Extension
    *************************************************
    /usr/local/src/centminmod
    cd /svr-setup
    PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    7.4
    0
    make: *** No rule to make target `clean'.  Stop.
    Configuring for:
    PHP Api Version:         20190902
    Zend Module Api No:      20190902
    Zend Extension Api No:   320190902
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for pkg-config... /bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether ccache gcc accepts -g... yes
    checking for ccache gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... ccache gcc -E
    checking for icc... no
    checking for suncc... no
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking target system type... x86_64-pc-linux-gnu
    checking for PHP prefix... /usr/local
    checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
    checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20190902
    checking for PHP installed headers prefix... /usr/local/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for gawk... gawk
    checking whether to enable the imagick extension... yes, shared
    checking for pkg-config... /bin/pkg-config
    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.
    
    Copying imagick.ini > /etc/centminmod/php.d/imagick.ini
    
    service php-fpm restart
    Redirecting to /bin/systemctl restart php-fpm.service
    *************************************************
    * imagick PHP installed
    [CODEB]
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    7:33 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah the updated centmin.sh menu option 15 prevents your issue from happening but doesn't fix it if it already has happened so need to do manual steps at Imagick install failed

    try manual fix at Sysadmin - ImageMagick conflicting but find your specific yum transaction ID first from Sysadmin - ImageMagick conflicting as it will be different from @pamamolf reported one in that link
    Code (Text):
    yum history list ImageMagick
    

    Transaction is for the removed Imagick packed listed command for
    Code (Text):
     -y remove ImageMagick
    
     
  5. hrudi

    hrudi New Member

    4
    0
    1
    Sep 19, 2020
    Ratings:
    +1
    Local Time:
    4:33 AM
    1.19.2
    10
  6. eva2000

    eva2000 Administrator Staff Member

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    7:33 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Great to here :)