Heim  >  Artikel  >  php教程  >  php 编译安装imagick报错 wand/MagickWand.h:没有那个文件或目

php 编译安装imagick报错 wand/MagickWand.h:没有那个文件或目

WBOY
WBOYOriginal
2016-06-06 20:07:471819Durchsuche

php 编译安装imagick报错 在包含自 /soft/imagick-3.1.0RC2/imagick_file.c:21 的文件中:/soft/imagick-3.1.0RC2/php_imagick.h:49:31: 错误:wand/MagickWand.h:没有那个文件或目录In file included from /soft/imagick-3.1.0RC2/php_imagick_file.h:24,

php 编译安装imagick报错

在包含自 /soft/imagick-3.1.0RC2/imagick_file.c:21 的文件中:
/soft/imagick-3.1.0RC2/php_imagick.h:49:31: 错误:wand/MagickWand.h:没有那个文件或目录
In file included from /soft/imagick-3.1.0RC2/php_imagick_file.h:24,
                 from /soft/imagick-3.1.0RC2/imagick_file.c:22:
/soft/imagick-3.1.0RC2/php_imagick_defs.h:72: 错误:expected specifier-qualifier-list before ‘MagickWand’
/soft/imagick-3.1.0RC2/php_imagick_defs.h:80: 错误:expected specifier-qualifier-list before ‘DrawingWand’
/soft/imagick-3.1.0RC2/php_imagick_defs.h:86: 错误:expected specifier-qualifier-list before ‘PixelIterator’
/soft/imagick-3.1.0RC2/php_imagick_defs.h:98: 错误:expected specifier-qualifier-list before ‘PixelWand’
In file included from /soft/imagick-3.1.0RC2/imagick_file.c:22:
/soft/imagick-3.1.0RC2/php_imagick_file.h:43: 错误:‘MaxTextExtent’未声明(不在函数内)
/soft/imagick-3.1.0RC2/imagick_file.c: 在函数‘php_imagick_file_init’中:
/soft/imagick-3.1.0RC2/imagick_file.c:75: 错误:‘MagickPath’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:75: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
/soft/imagick-3.1.0RC2/imagick_file.c:75: 错误:所在的函数内也只报告一次。)
/soft/imagick-3.1.0RC2/imagick_file.c:99: 错误:‘HeadPath’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:100: 错误:‘TailPath’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c: 在函数‘php_imagick_read_image_using_imagemagick’中:
/soft/imagick-3.1.0RC2/imagick_file.c:124: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:124: 错误:‘MagickFalse’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:128: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:135: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:137: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c: 在函数‘php_imagick_read_image_using_php_streams’中:
/soft/imagick-3.1.0RC2/imagick_file.c:144: 错误:‘MagickBooleanType’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:144: 错误:expected ‘;’ before ‘status’
/soft/imagick-3.1.0RC2/imagick_file.c:177: 错误:‘status’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:177: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:179: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:184: 错误:‘MagickFalse’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:189: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:196: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c: 在函数‘php_imagick_write_file’中:
/soft/imagick-3.1.0RC2/imagick_file.c:247: 错误:‘MagickBooleanType’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:247: 错误:expected ‘;’ before ‘status’
/soft/imagick-3.1.0RC2/imagick_file.c:258: 错误:‘status’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:258: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:260: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:264: 错误:‘MagickFalse’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c: 在函数‘php_imagick_stream_handler’中:
/soft/imagick-3.1.0RC2/imagick_file.c:277: 错误:‘MagickBooleanType’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:277: 错误:expected ‘;’ before ‘status’
/soft/imagick-3.1.0RC2/imagick_file.c:306: 错误:‘status’未声明(在此函数内第一次使用)
/soft/imagick-3.1.0RC2/imagick_file.c:306: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:310: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:314: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:318: 错误:‘php_imagick_object’没有名为‘magick_wand’的成员
/soft/imagick-3.1.0RC2/imagick_file.c:326: 错误:‘MagickFalse’未声明(在此函数内第一次使用)
make: *** [imagick_file.lo] 错误 1

处理方式:

export PKG_CONFIG_PATH=/usr/local/ImageMagick/lib/pkgconfig
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn