AMH5.3安装pecl_imagick扩展失败的解决办法

给image_magick-7.0安装pecl_imagick-3.4.1扩展的时候总是出错,错误代码为:

pkg-config not found 
configure: error: Please reinstall the pkg-config distribution 
./configure --with-php-config=/usr/local/php-5.6/bin/php-config --with-imagick=/usr/local/image_magick-7.0 
make: *** No targets specified and no makefile found. Stop. 
make: *** No rule to make target 'install'. Stop. 
mv: cannot stat '/usr/local/php-5.6/lib/php/extensions/no-debug-non-zts-20131226/imagick.so': No such file or directory

这是由于pkg-config缺失引起的,安装下pkg-config即可解决:

apt-get install pkg-config