The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ImageMagick install new errors

Discussion in 'EasyApache' started by asmithjr, Aug 10, 2015.

  1. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    I have installed ImageMagick using yum to see if it would correct the errors I see in error_log
    10-Aug-2015 13:01:06 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0

    I see there is extension="imagick.so" in my php.ini and in the extensions/non-debug-non-zts-20121212 folder.
    I find that libMagickWand.so is linked to libMagickWand.so.5.0.0 when I do a find.

    Should I just link it to LibMagickwand.so.2 to get the errors to stop.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you let us know which operating system you are using? Also, try reinstalling the imagick module in PECL within "WHM > Home > Software > Module Installers > PHP Pecl" to see if that helps.

    Thank you.
     
  3. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    Thanks, here is output from uname -a
    Linux SERVER_NAME 2.6.32-504.23.4.el6.x86_64 #1 SMP Tue Jun 9 20:57:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
    WHM 11.50.0 build 29

    I see in PHP Pecl imagic 3.1.2
    I ran a Reinstall.

    I rechecked and after removing the error_log file in the public_html folder it reappeared.
    [10-Aug-2015 13:59:04 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on line 0
     
  4. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    I just read on another forum where someone recommended running /scripts/easyapache --build and check again after it completed. I will post the results.
     
  5. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    That seemed to work. At least no error_log yet. I notice there is a new imagick.so in the /usr/local/lib/php/extensions/no-debug-non-zts-20121212
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I'm happy to see the issue is now resolved. Note that this issue likely occurs because CentOS 6.7 with ImageMagick-devel-6.7.2.7-2 now supplies "libMagickWand.so.5.0.0". This can cause a PHP error if the optional "imagick" PECL plugin is installed.

    Thank you.
     
  7. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    96
    Likes Received:
    1
    Trophy Points:
    8
    is this related to? jordansphere.co.uk/cpanel-libmagickwand-so-2-php-extension-error-after-upcp-update/ ?

    and is there no other way then recompile apache?
    i have this error on a production server with 500+ domains on it - mostly running cms systems
     
    #7 zye, Aug 11, 2015
    Last edited by a moderator: Sep 25, 2015
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can try reinstalling the imagick module in PECL within "WHM > Home > Software > Module Installers > PHP Pecl" to see if that helps. Or, you can do this by running the following command:

    Code:
    /usr/local/cpanel/3rdparty/bin/perl -e 'use Cpanel::LangMods; for my $module (@ARGV){print "\n==== Uninstall $module ====\n"; print Cpanel::LangMods::doaction("php-pecl","uninstall",$module); print "\n====\n";print "\n==== Install $module ====\n"; print Cpanel::LangMods::doaction("php-pecl","install",$module); print "\n====\n";}' imagick
    Thank you.
     
  9. zye

    zye Well-Known Member

    Joined:
    Dec 6, 2002
    Messages:
    96
    Likes Received:
    1
    Trophy Points:
    8
    thank you

    /usr/local/cpanel/3rdparty/bin/perl -e 'use Cpanel::LangMods; for my $module (@ARGV){print "\n==== Uninstall $module ====\n"; print Cpanel::LangMods::doaction("php-pecl","uninstall",$module); print "\n====\n";print "\n==== Install $module ====\n"; print Cpanel::LangMods::doaction("php-pecl","install",$module); print "\n====\n";}' imagick



    worked smoothly

    greets
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  11. Motamedi

    Motamedi Well-Known Member

    Joined:
    Mar 14, 2015
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Iran , Tehran
    cPanel Access Level:
    Root Administrator
    hello ,

    To install gives error

    Code:
    downloading imagick-3.1.2.tgz ...
    Starting to download imagick-3.1.2.tgz (94,657 bytes)
    .....................done: 94,657 bytes
    15 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626
    Please provide the prefix of Imagemagick installation [autodetect] : building in /root/tmp/pear/pear-build-rootSxpKB4/imagick-3.1.2
    running: /root/tmp/pear/imagick/configure --with-imagick
    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 cc... cc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    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-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-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-20090626
    checking for PHP installed headers prefix... /usr/local/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking whether to enable the imagick extension... yes, shared
    checking whether to enable the imagick GraphicsMagick backend... no
    checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    ERROR: `/root/tmp/pear/imagick/configure --with-imagick' failed
    The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626
    Tidying /usr/local/lib/php.ini...
    No changes
    Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
    No changes
    What is the problem?
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  13. Motamedi

    Motamedi Well-Known Member

    Joined:
    Mar 14, 2015
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Iran , Tehran
    cPanel Access Level:
    Root Administrator
    this command for install :
    /scripts/installimagemagick

    and "WHM > Home > Software > Module Installers > PHP Pecl"

    Both methods give error !

    Code:
    info [installimagemagick] scripts/installimagemagick is now deprecated. The ImageMagick from your distro will now be installed.
    Loaded plugins: fastestmirror, rhnplugin, security
    Profilename: server.domain.com
    There was an error communicating with CLN.
    Setting up Install Process
    Loading mirror speeds from cached hostfile
    No package ImageMagick-devel available.
    No package ImageMagick-c++-devel available.
    No package ImageMagick available.
    Error: Nothing to do
    The system failed to execute yum with the arguments “-y -c /etc/yum.conf install ImageMagick-devel ImageMagick-c++-devel ImageMagick” because of an error: The subprocess “/usr/bin/yum” reported the “EPERM” (1) error when it ended. : There was an error communicating with CLN.
    CLN support will be disabled.
    Error communicating with server. The message was:
    
    Error Message:
        Please run rhn_register as root on this client
    Error Class Code: 9
    Error Class Info: Invalid System Credentials.
    Explanation:
         An error has occurred while processing your request. If this problem
         persists please enter a bug report at helpdesk.cloudlinux.com.
         If you choose to submit the bug report, please be sure to include
         details of what you were trying to do when this error occurred and
         details on how to reproduce this problem.
    
    Error: Nothing to do
    Loaded plugins: fastestmirror, rhnplugin, security
    Profilename: server.domain.com
    There was an error communicating with CLN.
    Setting up Install Process
    Loading mirror speeds from cached hostfile
    No package ImageMagick-perl available.
    Error: Nothing to do
    The system failed to execute yum with the arguments “-y -c /etc/yum.conf install ImageMagick-perl” because of an error: The subprocess “/usr/bin/yum” reported the “EPERM” (1) error when it ended. : There was an error communicating with CLN.
    CLN support will be disabled.
    Error communicating with server. The message was:
    
    Error Message:
        Please run rhn_register as root on this client
    Error Class Code: 9
    Error Class Info: Invalid System Credentials.
    Explanation:
         An error has occurred while processing your request. If this problem
         persists please enter a bug report at helpdesk.cloudlinux.com.
         If you choose to submit the bug report, please be sure to include
         details of what you were trying to do when this error occurred and
         details on how to reproduce this problem.
    
    Error: Nothing to do
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    
    Warning: php_uname() has been disabled for security reasons in PEAR/Registry.php on line 814
    config-set succeeded
    downloading imagick-3.1.2.tgz ...
    Starting to download imagick-3.1.2.tgz (94,657 bytes)
    .....................done: 94,657 bytes
    15 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20090626
    Zend Module Api No:      20090626
    Zend Extension Api No:   220090626
    Please provide the prefix of Imagemagick installation [autodetect] : building in /root/tmp/pear/pear-build-rootHCEgaO/imagick-3.1.2
    running: /root/tmp/pear/imagick/configure --with-imagick
    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 cc... cc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    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-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-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-20090626
    checking for PHP installed headers prefix... /usr/local/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking whether to enable the imagick extension... yes, shared
    checking whether to enable the imagick GraphicsMagick backend... no
    checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    ERROR: `/root/tmp/pear/imagick/configure --with-imagick' failed
    The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626
    Tidying /usr/local/lib/php.ini...
    No changes
    Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
    No changes
    
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You will need to ensure that "yum update" works before you can proceed. It looks like your server is not properly registered for RHEL updates.

    Thank you.
     
  15. Motamedi

    Motamedi Well-Known Member

    Joined:
    Mar 14, 2015
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Iran , Tehran
    cPanel Access Level:
    Root Administrator
    with command "yum update" not resolved
    what's the solution?
    How to solve the problem?
     
  16. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you verify if "yum update" now completes without error on your system?

    Thank you.
     
  17. gasak

    gasak Registered

    Joined:
    May 19, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I have the same error trying to install imagick:
    PHP:
    downloading imagick-3.3.0.tgz ...
    Starting to download imagick-3.3.0.tgz (179,978 bytes)
    ......................................
    done179,978 bytes
    17 source files
    building
    running
    phpize
    Configuring 
    for:
    PHP Api Version:         20121113
    Zend Module Api No
    :      20121212
    Zend Extension Api No
    :   220121212
    Please provide the prefix of Imagemagick installation 
    [autodetect] : building in /root/tmp/pear/pear-build-rootwcCzfA/imagick-3.3.0
    running
    : /root/tmp/pear/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick
    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 cc... cc
    checking 
    for C compiler default output file name... a.out
    checking whether the C compiler works
    ... yes
    checking whether we are cross compiling
    ... no
    checking 
    for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler
    ... yes
    checking whether cc accepts 
    -g... yes
    checking 
    for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor
    ... cc -E
    checking 
    for icc... no
    checking 
    for suncc... no
    checking whether cc understands 
    -and -o together... yes
    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-unknown-linux-gnu
    checking host system type
    ... x86_64-unknown-linux-gnu
    checking target system type
    ... x86_64-unknown-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-20121212
    checking 
    for PHP installed headers prefix... /usr/local/include/php
    checking 
    if debug is enabled... no
    checking 
    if zts is enabled... no
    checking 
    for re2c... no
    configure
    WARNINGYou will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking whether to enable the imagick extension
    ... yesshared
    checking 
    for pkg-config... /usr/bin/pkg-config
    checking ImageMagick MagickWand API configuration program
    ... configureerrornot foundPlease provide a path to MagickWand-config or Wand-config program.
    ERROR: `/root/tmp/pear/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick' failed
    The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20121212
    Tidying /usr/local/lib/php.ini...
    No changes
    Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
    No changes
    Trying yum update working fine:
    PHP:
    # yum -y update
    Loaded pluginsfastestmirror
    Setting up Update Process
    Loading mirror speeds from cached hostfile
    basemirrors.prometeus.net
    extrasmirrors.prometeus.net
    updatesmirrors.prometeus.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package kernel.x86_64 0:2.6.32-573.12.1.el6 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================
    Package       Arch          Version                       Repository      Size
    ================================================================================
    Installing:
    kernel        x86_64        2.6.32-573.12.1.el6           updates         30 M

    Transaction Summary
    ================================================================================
    Install       1 Package(s)

    Total download size30 M
    Installed size
    126 M
    Downloading Packages
    :
    kernel-2.6.32-573.12.1.el6.x86_64.rpm                    |  30 MB     00:01
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing 
    kernel-2.6.32-573.12.1.el6.x86_64                            1/1
      Verifying  
    kernel-2.6.32-573.12.1.el6.x86_64                            1/1

    Installed
    :
      
    kernel.x86_64 0:2.6.32-573.12.1.el6

    Complete
    !
    Please help. Thank you.
     
  18. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please let us know if any of the solutions on the following thread are helpful:

    imagick (PHP) not work

    Thank you.
     
  19. flizarraga

    flizarraga Registered

    Joined:
    Jan 17, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I already try all the solutions you posted. This is what I get when trying to install imagick.

    Code:
    *** Info ***
    Distro: CENTOS 6.7 x86_64 virtuozzo
    PHP: 5.6
    # /scripts/checkimagemagick
    -bash: /scripts/checkimagemagick: No such file or directory
    root@fan [~]# convert --version
    Version: ImageMagick 6.7.2-7 2015-07-23 Q16 [URL='http://www.imagemagick.org']ImageMagick: Convert, Edit, Or Compose Bitmap Images[/URL]
    Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
    Features: OpenMP
    *****************
    
    Installing imagick
    
    downloading imagick-3.3.0.tgz ...
    Starting to download imagick-3.3.0.tgz (179,978 bytes)
    ......................................done: 179,978 bytes
    17 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20131106
    Zend Module Api No:      20131226
    Zend Extension Api No:   220131226
    Please provide the prefix of Imagemagick installation [autodetect] : building in /root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0
    running: /root/tmp/pear/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick
    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 cc... cc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    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-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-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-20131226
    checking for PHP installed headers prefix... /usr/local/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking whether to enable the imagick extension... yes, shared
    checking for pkg-config... /usr/bin/pkg-config
    checking ImageMagick MagickWand API configuration program... found in /usr/bin/MagickWand-config
    checking if ImageMagick version is at least 6.2.4... found version 6.7.2 Q16
    checking for MagickWand.h or magick-wand.h header... /usr/include/ImageMagick/wand/MagickWand.h
    checking PHP version is at least 5.1.3... yes. found 5.6.16
    checking for ld used by cc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognize dependent libraries... pass_all
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking the maximum length of command line arguments... 1966080
    checking command to parse /usr/bin/nm -B output from cc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if cc supports -fno-rtti -fno-exceptions... no
    checking for cc option to produce PIC... -fPIC
    checking if cc PIC flag -fPIC works... yes
    checking if cc static flag -static works... yes
    checking if cc supports -c -o file.o... yes
    checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    
    creating libtool
    appending configuration tag "CXX" to libtool
    configure: creating ./config.status
    config.status: creating config.h
    running: make
    /bin/sh /root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagick_file.c -o imagick_file.lo
    mkdir .libs
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagick_file.c  -fPIC -DPIC -o .libs/imagick_file.o
    /bin/sh /root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagick_class.c -o imagick_class.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagick_class.c  -fPIC -DPIC -o .libs/imagick_class.o
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimagematte':
    /root/tmp/pear/imagick/imagick_class.c:295: warning: 'MagickGetImageMatte' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_paintfloodfillimage':
    /root/tmp/pear/imagick/imagick_class.c:1204: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
    /root/tmp/pear/imagick/imagick_class.c:1212: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_recolorimage':
    /root/tmp/pear/imagick/imagick_class.c:1673: warning: 'MagickRecolorImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:109)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_colorfloodfillimage':
    /root/tmp/pear/imagick/imagick_class.c:3951: warning: 'MagickColorFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:75)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_mapimage':
    /root/tmp/pear/imagick/imagick_class.c:4369: warning: 'MagickMapImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:86)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_mattefloodfillimage':
    /root/tmp/pear/imagick/imagick_class.c:4408: warning: 'MagickMatteFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:88)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_medianfilterimage':
    /root/tmp/pear/imagick/imagick_class.c:4444: warning: 'MagickMedianFilterImage' is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:212)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_paintopaqueimage':
    /root/tmp/pear/imagick/imagick_class.c:4524: warning: 'MagickPaintOpaqueImageChannel' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:104)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_painttransparentimage':
    /root/tmp/pear/imagick/imagick_class.c:4605: warning: 'MagickPaintTransparentImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:107)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_reducenoiseimage':
    /root/tmp/pear/imagick/imagick_class.c:4767: warning: 'MagickReduceNoiseImage' is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:260)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimageattribute':
    /root/tmp/pear/imagick/imagick_class.c:5935: warning: 'MagickGetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:59)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimagechannelextrema':
    /root/tmp/pear/imagick/imagick_class.c:6139: warning: 'MagickGetImageChannelExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:78)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimageextrema':
    /root/tmp/pear/imagick/imagick_class.c:6413: warning: 'MagickGetImageExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:80)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimageindex':
    /root/tmp/pear/imagick/imagick_class.c:7383: warning: 'MagickGetImageIndex' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_setimageindex':
    /root/tmp/pear/imagick/imagick_class.c:7408: warning: 'MagickSetImageIndex' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:113)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_getimagesize':
    /root/tmp/pear/imagick/imagick_class.c:7493: warning: 'MagickGetImageSize' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_setimageattribute':
    /root/tmp/pear/imagick/imagick_class.c:7910: warning: 'MagickSetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:111)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_flattenimages':
    /root/tmp/pear/imagick/imagick_class.c:8225: warning: 'MagickFlattenImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_averageimages':
    /root/tmp/pear/imagick/imagick_class.c:9381: warning: 'MagickAverageImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131)
    /root/tmp/pear/imagick/imagick_class.c: In function 'zim_imagick_mosaicimages':
    /root/tmp/pear/imagick/imagick_class.c:9873: warning: 'MagickMosaicImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135)
    /bin/sh /root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagickdraw_class.c -o imagickdraw_class.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagickdraw_class.c  -fPIC -DPIC -o .libs/imagickdraw_class.o
    /bin/sh /root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagickpixel_class.c -o imagickpixel_class.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagickpixel_class.c  -fPIC -DPIC -o .libs/imagickpixel_class.o
    /bin/sh /root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagickpixeliterator_class.c -o imagickpixeliterator_class.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagickpixeliterator_class.c  -fPIC -DPIC -o .libs/imagickpixeliterator_class.o
    /bin/sh /root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagick_helpers.c -o imagick_helpers.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagick_helpers.c  -fPIC -DPIC -o .libs/imagick_helpers.o
    /bin/sh /root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/libtool --mode=compile cc -fopenmp -I/usr/include/ImageMagick   -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2   -c /root/tmp/pear/imagick/imagick.c -o imagick.lo
    cc -fopenmp -I/usr/include/ImageMagick -I. -I/root/tmp/pear/imagick -DPHP_ATOM_INC -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/include -I/root/tmp/pear/pear-build-rootuDL2pR/imagick-3.3.0/main -I/root/tmp/pear/imagick -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 -I/usr/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /root/tmp/pear/imagick/imagick.c  -fPIC -DPIC -o .libs/imagick.o
    In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
                     from /root/tmp/pear/imagick/imagick.c:31:
    /usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
    In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
                     from /root/tmp/pear/imagick/imagick.c:31:
    /usr/local/include/php/ext/pcre/php_pcre.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/local/include/php/ext/pcre/php_pcre.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/local/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before 'pcre'
    make: *** [imagick.lo] Error 1
    ERROR: `make' failed
    The imagick.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20131226
    Tidying /usr/local/lib/php.ini...
    No changes
    Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
    No changes
     
    #19 flizarraga, Jan 8, 2016
    Last edited by a moderator: Jan 8, 2016
  20. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please run the following commands to install the pcre and pcre-devel packages and let us know if the issue persists:

    Code:
    yum install pcre
    yum install pcre-devel
    Thank you.
     
Loading...

Share This Page