编译php的imagick模块报错
今天编译php的扩展模块imagick,报错如下:
[code][root@jweb1 imagick-3.1.2]# ./configure --with-php-config=/usr/local/php5.4.45/bin/php-config --with-imagick=/usr/local/imagemagick
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 for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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... /usr/local/php5.4.45
checking for PHP includes... -I/usr/local/php5.4.45/include/php -I/usr/local/php5.4.45/include/php/main -I/usr/local/php5.4.45/include/php/TSRM -I/usr/local/php5.4.45/include/php/Zend -I/usr/local/php5.4.45/include/php/ext -I/usr/local/php5.4.45/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php5.4.45/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/local/php5.4.45/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 whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.[/code]请问这是什么问题,少什么依赖吗?
没有找到相关结果
已邀请:
1 个回复
空心菜 - 心向阳光,茁壮成长
赞同来自: Ansible
是因为缺少re2c的依赖。
Yum安装如下:
编译安装参考如下:
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program是因为缺少ImageMagick的开发包,可以如下安装操作: