hrace009

Well-Known Member
Dec 24, 2013
75
10
8
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
 
Last edited:

hrace009

Well-Known Member
Dec 24, 2013
75
10
8
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:
[[email protected] ~]# /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
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
You should re-read that other thread. In your first post above in the output:
running: /opt/cpanel/ea-php70/root/usr/var/tmp/php-pear/imagick/configure
But you ran the command with a different version of php in the command:
/opt/cpanel/ea-php56/root/usr/bin/pecl install imagick
From that other thread I mentioned:
Note that EasyApache 4 includes support for multiple versions of PHP, so you must utilize the PHP 5.6 SCL if that's the version you want to install it on, as indicated by the above command.
What version of PHP is installed?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
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.
 

hrace009

Well-Known Member
Dec 24, 2013
75
10
8
Root
cPanel Access Level
Root Administrator
Twitter
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.
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
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
 
  • Like
Reactions: hrace009

Samet Chan

Well-Known Member
Jun 24, 2016
369
42
153
cPanel Access Level
Root Administrator
Twitter
You will need to install those packages via the command line with "YUM". EX:

Code:
yum install ImageMagick ImageMagick-devel pcre-devel
Thank you.
(Package pcre-devel-8.32-15.el7_2.1.x86_64 already installed and latest version
Nothing to do)

I installed it.

But i can't enable the imagick.
774ce50351874fa9be7b37a593f76a2d.png

Where i find this to enable on WHM.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Ensure you install the actual PECL module rather than just installing those packages via YUM. This specific post describes the process:

SOLVED - Pecl with EA4

Thank you.
 

tons

Member
Jun 1, 2022
6
0
1
Argentina
cPanel Access Level
Root Administrator
Hey!

I'm sorry about re-opening these, but I have a issue pretty much related. I can't finalize my installation of Imagick (ImageMagick) for PHP (whatever version) on my WHM panel, at a dedicated server.

When I try to install it via "Module Installer => PHP PECL" manager, I got this result:

Last metadata expiration check: 3:44:02 ago on Wed Jun 15 11:07:54 2022.
Package ImageMagick-devel-6.9.12.50-2.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to
update
downloading imagick-3.7.0.tgz ...
Starting to download imagick-3.7.0.tgz (360,138 bytes)
.........................................................................done: 360,138 bytes
33 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed


More info: Screenshot

I got stuck in order to make phpize to work, I guess that is the last only issue that I have to solve.

Could you help me, please?

Thanks in advance!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,285
2,434
363
cPanel Access Level
Root Administrator
Alright, that's good. Can you try this on the command line now? I don't think the Pecl installation through the module installers will work with the modern versions:

Code:
/opt/cpanel/ea-php74/root/usr/bin/pecl install imagick
Just change that PHP version in the command to the specific version you're working with.