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.

Installing Imagick CentOS 7

Discussion in 'General Discussion' started by hrace009, Sep 2, 2016.

Tags:
  1. hrace009

    hrace009 Well-Known Member

    Joined:
    Dec 24, 2013
    Messages:
    66
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Root
    cPanel Access Level:
    Root Administrator
    Twitter:
    Today i reinstall my server with CentOS 7
    everything running fine.
    but when i try to install Imagick from WHM > Software > Module Installer > PHP Pecl
    i got this error:

    ea-php56

    Code:
    downloading imagick-3.4.3RC1.tgz ...
    Starting to download imagick-3.4.3RC1.tgz (245,140 bytes)
    .........................done: 245,140 bytes
    19 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 /opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/pear-build-rootjKbk2o/imagick-3.4.3RC1
    running: /opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/imagick/configure --with-php-config=/opt/cpanel/ea-php56/root/usr/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 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 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... /opt/cpanel/ea-php56/root/usr
    checking for PHP includes... -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib
    checking for PHP extension directory... /opt/cpanel/ea-php56/root/usr/lib64/php/modules
    checking for PHP installed headers prefix... /opt/cpanel/ea-php56/root/usr/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... /bin/pkg-config
    checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
    configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    ERROR: `/opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/imagick/configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --with-imagick' failed
    ea-php7
    Code:
    downloading imagick-3.4.3RC1.tgz ...
    Starting to download imagick-3.4.3RC1.tgz (245,140 bytes)
    ...................................................done: 245,140 bytes
    19 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20151012
    Zend Module Api No:      20151012
    Zend Extension Api No:   320151012
    Please provide the prefix of Imagemagick installation [autodetect] : building in /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/pear-build-rootlTF8Mn/imagick-3.4.3RC1
    running: /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/imagick/configure --with-php-config=/opt/cpanel/ea-php70/root/usr/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 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 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... /opt/cpanel/ea-php70/root/usr
    checking for PHP includes... -I/opt/cpanel/ea-php70/root/usr/include/php -I/opt/cpanel/ea-php70/root/usr/include/php/main -I/opt/cpanel/ea-php70/root/usr/include/php/TSRM -I/opt/cpanel/ea-php70/root/usr/include/php/Zend -I/opt/cpanel/ea-php70/root/usr/include/php/ext -I/opt/cpanel/ea-php70/root/usr/include/php/ext/date/lib
    checking for PHP extension directory... /opt/cpanel/ea-php70/root/usr/lib64/php/modules
    checking for PHP installed headers prefix... /opt/cpanel/ea-php70/root/usr/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... /bin/pkg-config
    checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
    configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    ERROR: `/opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/imagick/configure --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config --with-imagick' failed
    On my previous install, there is a script to install imagick. but i don't see it anymore. maybe cPanel remove it.
    Does anyone have solution?

    Thanks
     
    #1 hrace009, Sep 2, 2016
    Last edited: Sep 2, 2016
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. hrace009

    hrace009 Well-Known Member

    Joined:
    Dec 24, 2013
    Messages:
    66
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Root
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi thanks,
    I have run command, but it still same error
    Code:
    /opt/cpanel/ea-php56/root/usr/bin/pecl install imagick
    Code:
    [root@svr1 ~]# /opt/cpanel/ea-php56/root/usr/bin/pecl install imagick
    downloading imagick-3.4.3RC1.tgz ...
    Starting to download imagick-3.4.3RC1.tgz (245,140 bytes)
    .........done: 245,140 bytes
    19 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 /opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/pear-build-rootljBdUv/imagick-3.4.3RC1
    running: /opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/imagick/configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --with-imagick
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for cc... cc
    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 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... /opt/cpanel/ea-php56/root/usr
    checking for PHP includes... -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib
    checking for PHP extension directory... /opt/cpanel/ea-php56/root/usr/lib64/php/modules
    checking for PHP installed headers prefix... /opt/cpanel/ea-php56/root/usr/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... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/bin/MagickWand-config... Doesn't exist
    checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/bin/MagickWand-config... Doesn't exist
    checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
    configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
    ERROR: `/opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/imagick/configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --with-imagick' failed
    
     
  4. hrace009

    hrace009 Well-Known Member

    Joined:
    Dec 24, 2013
    Messages:
    66
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Root
    cPanel Access Level:
    Root Administrator
    Twitter:
    i am sure, when i still use CentOS 6.8, it can install it perfectly
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You should re-read that other thread. In your first post above in the output:
    But you ran the command with a different version of php in the command:
    From that other thread I mentioned:
    What version of PHP is installed?
     
  6. hrace009

    hrace009 Well-Known Member

    Joined:
    Dec 24, 2013
    Messages:
    66
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Root
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi thanks for reply
    only PHP 5.6 and PHP 7.0 installed from EA4
    and i remove PHP 5.5 from EA4
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Check to ensure the ImageMagick and ImageMagick-devel packages are installed on the system before running that PECL installation command:

    Code:
    yum install ImageMagick ImageMagick-devel
    You may also need to install the "pcre-devel" package.

    Thank you.
     
  8. hrace009

    hrace009 Well-Known Member

    Joined:
    Dec 24, 2013
    Messages:
    66
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Root
    cPanel Access Level:
    Root Administrator
    Twitter:
    hi thanks, i have run that command, now everything fine. I think if it already at WHM, we don't need to run that command again :-p
     
    cPanelMichael likes this.
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page