# Install build dependencies
yum install php-devel ImageMagick-devel
# Get latest version from https://pecl.php.net/package/imagick
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.1.tgz
tar -zxf imagick-3.4.1.tgz
cd imagick-3.4.1
phpize
./configure
make install
# The extension file will be placed in the PHP extensions folder; it just needs to be
# added to your php.ini or /etc/php.d/ file(verify path):
# extension=imagick.so
Previous Post: Install HandBrake CLI v0.9.9 on CentOS 6.4