PHP5.4でpecl install Imagickでエラー

/bin/sh /var/tmp/pear-build-rootoZizHc/imagick-3.0.1/libtool --mode=compile cc
  -I. -I/var/tmp/imagick -DPHP_ATOM_INC -I/var/tmp/pear-build-rootoZizHc/imagick-3.0.1/include
  -I/var/tmp/pear-build-rootoZizHc/imagick-3.0.1/main -I/var/tmp/imagick -I/usr/include/php 
  -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext
  -I/usr/include/php/ext/date/lib -I/usr/include/ImageMagick  -DHAVE_CONFIG_H  -g -O2
  -c /var/tmp/imagick/imagick_class.c
  -o imagick_class.lolibtool: compile:  cc -I.
  -I/var/tmp/imagick -DPHP_ATOM_INC
  -I/var/tmp/pear-build-rootoZizHc/imagick-3.0.1/include
  -I/var/tmp/pear-build-rootoZizHc/imagick-3.0.1/main
  -I/var/tmp/imagick -I/usr/include/php
  -I/usr/include/php/main -I/usr/include/php/TSRM
  -I/usr/include/php/Zend -I/usr/include/php/ext
  -I/usr/include/php/ext/date/lib
  -I/usr/include/ImageMagick -DHAVE_CONFIG_H 
  -g -O2 -c /var/tmp/imagick/imagick_class.c
  -fPIC -DPIC -o .libs/imagick_class.o
/var/tmp/imagick/imagick_class.c: In function 'zim_imagick_setfont':
/var/tmp/imagick/imagick_class.c:1442: error: 'struct _php_core_globals' has no member named 'safe_mode'
/var/tmp/imagick/imagick_class.c:1442: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/var/tmp/imagick/imagick_class.c:1442: error: (Each undeclared identifier is reported only once
/var/tmp/imagick/imagick_class.c:1442: error: for each function it appears in.)
/var/tmp/imagick/imagick_class.c:1442: error: 'CHECKUID_NO_ERRORS' undeclared (first use in this function)
/var/tmp/imagick/imagick_class.c: In function 'zim_imagick_setimageprogressmonitor':
/var/tmp/imagick/imagick_class.c:9534: error: 'struct _php_core_globals' has no member named 'safe_mode'
/var/tmp/imagick/imagick_class.c:9534: error: 'CHECKUID_CHECK_FILE_AND_DIR' undeclared (first use in this function)
/var/tmp/imagick/imagick_class.c:9534: error: 'CHECKUID_NO_ERRORS' undeclared (first use in this function)
make: *** [imagick_class.lo] エラー 1
ERROR: `make' failed

対処法

ImagickではなくImagick-betaを入れれば成功しました。
pecl install Imagick-beta
参考
カテゴリ: