linux下安装ImageMagick-6.5.1-2 老是编译有错误,哪位高手知道怎么解决吗 10
/bin/sh/home/ftpdir/imagick-3.0.1/libtool--mode=compilecc-I.-I/home/ftpdir/imagick-3....
/bin/sh /home/ftpdir/imagick-3.0.1/libtool --mode=compile cc -I. -I/home/ftpdir/imagick-3.0.1 -DPHP_ATOM_INC -I/home/ftpdir/imagick-3.0.1/include -I/home/ftpdir/imagick-3.0.1/main -I/home/ftpdir/imagick-3.0.1 -I/usr/local/webserver/php/include/php -I/usr/local/webserver/php/include/php/main -I/usr/local/webserver/php/include/php/TSRM -I/usr/local/webserver/php/include/php/Zend -I/usr/local/webserver/php/include/php/ext -I/usr/local/webserver/php/include/php/ext/date/lib -I/usr/local/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /home/ftpdir/imagick-3.0.1/imagick_class.c -o imagick_class.lo
cc -I. -I/home/ftpdir/imagick-3.0.1 -DPHP_ATOM_INC -I/home/ftpdir/imagick-3.0.1/include -I/home/ftpdir/imagick-3.0.1/main -I/home/ftpdir/imagick-3.0.1 -I/usr/local/webserver/php/include/php -I/usr/local/webserver/php/include/php/main -I/usr/local/webserver/php/include/php/TSRM -I/usr/local/webserver/php/include/php/Zend -I/usr/local/webserver/php/include/php/ext -I/usr/local/webserver/php/include/php/ext/date/lib -I/usr/local/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /home/ftpdir/imagick-3.0.1/imagick_class.c -fPIC -DPIC -o .libs/imagick_class.o
/home/ftpdir/imagick-3.0.1/imagick_class.c: In function ‘zim_imagick_setfont’:
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: ‘struct _php_core_globals’ has no member named ‘safe_mode’
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: ‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function)
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: (Each undeclared identifier is reported only once
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: for each function it appears in.)
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: ‘CHECKUID_NO_ERRORS’ undeclared (first use in this function)
/home/ftpdir/imagick-3.0.1/imagick_class.c: In function ‘zim_imagick_setimageprogressmonitor’:
/home/ftpdir/imagick-3.0.1/imagick_class.c:9534: error: ‘struct _php_core_globals’ has no member named ‘safe_mode’
/home/ftpdir/imagick-3.0.1/imagick_class.c:9534: error: ‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function)
/home/ftpdir/imagick-3.0.1/imagick_class.c:9534: error: ‘CHECKUID_NO_ERRORS’ undeclared (first use in this function)
make: *** [imagick_class.lo] Error 1
错了,是安装imagick-3.0.1 展开
cc -I. -I/home/ftpdir/imagick-3.0.1 -DPHP_ATOM_INC -I/home/ftpdir/imagick-3.0.1/include -I/home/ftpdir/imagick-3.0.1/main -I/home/ftpdir/imagick-3.0.1 -I/usr/local/webserver/php/include/php -I/usr/local/webserver/php/include/php/main -I/usr/local/webserver/php/include/php/TSRM -I/usr/local/webserver/php/include/php/Zend -I/usr/local/webserver/php/include/php/ext -I/usr/local/webserver/php/include/php/ext/date/lib -I/usr/local/include/ImageMagick -DHAVE_CONFIG_H -g -O2 -c /home/ftpdir/imagick-3.0.1/imagick_class.c -fPIC -DPIC -o .libs/imagick_class.o
/home/ftpdir/imagick-3.0.1/imagick_class.c: In function ‘zim_imagick_setfont’:
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: ‘struct _php_core_globals’ has no member named ‘safe_mode’
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: ‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function)
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: (Each undeclared identifier is reported only once
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: for each function it appears in.)
/home/ftpdir/imagick-3.0.1/imagick_class.c:1442: error: ‘CHECKUID_NO_ERRORS’ undeclared (first use in this function)
/home/ftpdir/imagick-3.0.1/imagick_class.c: In function ‘zim_imagick_setimageprogressmonitor’:
/home/ftpdir/imagick-3.0.1/imagick_class.c:9534: error: ‘struct _php_core_globals’ has no member named ‘safe_mode’
/home/ftpdir/imagick-3.0.1/imagick_class.c:9534: error: ‘CHECKUID_CHECK_FILE_AND_DIR’ undeclared (first use in this function)
/home/ftpdir/imagick-3.0.1/imagick_class.c:9534: error: ‘CHECKUID_NO_ERRORS’ undeclared (first use in this function)
make: *** [imagick_class.lo] Error 1
错了,是安装imagick-3.0.1 展开
2个回答
2013-12-10
展开全部
应该是缺少编译时所依赖的第三方库,读读 "read me"。看人家要求怎样的库。
展开全部
你的PHP版本? 5.4的不能安装imagick-3.0.1
下载新版本
wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
tar xzvf imagick-3.1.0RC2.tgz
cd imagick-3.1.0RC2
phpize
./configure
make
cp modules/imagick.so /your-php-extensions-directory-path/
下载新版本
wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
tar xzvf imagick-3.1.0RC2.tgz
cd imagick-3.1.0RC2
phpize
./configure
make
cp modules/imagick.so /your-php-extensions-directory-path/
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询