Installing Imagick CentOS 7
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
ea-php7
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
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' failedea-php7
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' failedOn 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
-
This thread may be of some use to you: ImageMagick installation on actual cPanel-server 0 -
This thread may be of some use to you: ImageMagick installation on actual cPanel-server
Hi thanks, I have run command, but it still same error/opt/cpanel/ea-php56/root/usr/bin/pecl install imagick
[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' failed0 -
i am sure, when i still use CentOS 6.8, it can install it perfectly 0 -
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?0 -
What version of PHP is installed?
Hi thanks for reply only PHP 5.6 and PHP 7.0 installed from EA4 and i remove PHP 5.5 from EA40 -
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:yum install ImageMagick ImageMagick-devel
You may also need to install the "pcre-devel" package. Thank you.0 -
Hello, Check to ensure the ImageMagick and ImageMagick-devel packages are installed on the system before running that PECL installation command:
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 :-p0 -
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome. 0 -
There's a thread on that at: Installing Imagick CentOS 7 Thanks!
I installed it, ImageMagick ImageMagick-devel + pcre-devel Where i must to this enable?0 -
Where i must to this enable?
You will need to install those packages via the command line with "YUM". EX:yum install ImageMagick ImageMagick-devel pcre-devel
Thank you.0 -
You will need to install those packages via the command line with "YUM". EX:
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. Where i find this to enable on WHM.0 -
Was Apache Restarted? 0 -
Was Apache Restarted?
Yep, i did this restarted, it's same won't enable.0 -
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. 0 -
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!0 -
Hi @cPRex! Yes, I already did that, and is showing that is everything installed. Something else? Thank you! 0 -
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: /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.0 -
Thanks! I already tried that and this is what I got: Let me know what else I can do, and, what is the best way to update what is saying about PECL channel. Regards! 0 -
Interesting - can you check and see if the file exists? ls -lah /opt/cpanel/ea-php74/root/usr/bin/phpize0 -
Hey @cPRex! Thank you for your help! I have already solved this issue, I had to create a ticket to your support team, and they found, after some hours of hard work, that the issue that the config for pecl was changed to use the directory /root/pear/bin
instead of/opt/cpanel/ea-php74/root/usr/bin/
so they helped me to fix it and, now my PECL module installer is working well. Thank you!! Best regards!0 -
That's definitely odd, but I'm glad we were able to help track that down! 0
Please sign in to leave a comment.
Comments
22 comments