Fix “Imagick Configure Error Not Found” Error in cPanel
When Imagick installation fails with a configure error on your server. This article explains how to resolve the Imagick configure error in cPanel.
While installing Imagick in cPanel server using PECL (WHM > Software > Module Installer > PHP Pecl) or via command line by running the below command:
# /opt/cpanel/ea-php73/root/usr/bin/pecl install imagick ; you might encounter the following error:
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
ERROR: `/root/tmp/pear/imagick/configure --with-php-config=/opt/cpanel/ea-php71/root/usr/bin/php-config --with-imagick' failed
The reason for this could be the missing packages ImageMagick, ImageMagick-devel, and pcre-devel on the server. You can install the same using the "yum" command.
# yum install ImageMagick ImageMagick-devel pcre-devel
Try to install "Imagick" from WHM now.