开发者社区> 问答> 正文

红帽安装ImageMagick出错? 400 报错

红帽安装ImageMagick出错? 400 报错

在红帽5.5上安装ImageMagick,报错

make[1]: *** [magick/magick_libMagickCore_la-animate.lo] Error 1

 

下面是make信息:

[root@localhost ImageMagick-6.4.0]# make 
make  all-am
make[1]: Entering directory `/usr/local/ImageMagick-6.4.0'
/bin/sh ./libtool --silent --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I./config     -g -O2 -Wall -W -pthread -MT coders/coders_art_la-art.lo -MD -MP -MF coders/.deps/coders_art_la-art.Tpo -c -o coders/coders_art_la-art.lo `test -f 'coders/art.c' || echo './'`coders/art.c
mv -f coders/.deps/coders_art_la-art.Tpo coders/.deps/coders_art_la-art.Plo
/bin/sh ./libtool --silent --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I./config  -I./ltdl -I./ltdl    -g -O2 -Wall -W -pthread -MT magick/magick_libMagickCore_la-animate.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-animate.Tpo -c -o magick/magick_libMagickCore_la-animate.lo `test -f 'magick/animate.c' || echo './'`magick/animate.c
In file included from ./magick/animate-private.h:26,
                 from magick/animate.c:44:
./magick/xwindow-private.h:27:21: error: X11/Xos.h: No such file or directory
./magick/xwindow-private.h:28:22: error: X11/Xlib.h: No such file or directory
./magick/xwindow-private.h:29:23: error: X11/Xatom.h: No such file or directory
./magick/xwindow-private.h:30:28: error: X11/cursorfont.h: No such file or directory
./magick/xwindow-private.h:31:24: error: X11/keysym.h: No such file or directory
./magick/xwindow-private.h:32:27: error: X11/Xresource.h: No such file or directory
./magick/xwindow-private.h:33:23: error: X11/Xutil.h: No such file or directory
In file included from ./magick/animate-private.h:26,
                 from magick/animate.c:44:
./magick/xwindow-private.h:142: error: expected specifier-qualifier-list before 釶ixmap?
./magick/xwindow-private.h:192: error: expected specifier-qualifier-list before 釾FontStruct?
./magick/xwindow-private.h:215: error: expected specifier-qualifier-list before 釾Color?
./magick/xwindow-private.h:240: error: expected specifier-qualifier-list before 釾rmDatabase?
./magick/xwindow-private.h:346: error: expected specifier-qualifier-list before 釽indow?
./magick/xwindow-private.h:451: error: expected specifier-qualifier-list before 釪isplay?
./magick/xwindow-private.h:507: error: expected ??before 鈉onst?
./magick/xwindow-private.h:512: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 釾MakeCursor?
./magick/xwindow-private.h:515: error: expected ??before ??token
./magick/xwindow-private.h:519: error: expected ??before ??token
./magick/xwindow-private.h:531: error: expected ??before ??token
./magick/xwindow-private.h:568: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 釾WindowByID?
./magick/xwindow-private.h:573: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before ??token
./magick/xwindow-private.h:576: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 釾GetResourceDatabase?
./magick/xwindow-private.h:579: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before ??token
./magick/xwindow-private.h:582: error: expected ??before ??token
./magick/xwindow-private.h:585: warning: type defaults to 鈏nt?in declaration of 釾Color?
./magick/xwindow-private.h:585: error: expected ?? ??or ??before ??token
In file included from magick/animate.c:44:
./magick/animate-private.h:29: error: expected ??before ??token
./magick/animate-private.h:32: error: expected ??before ??token
In file included from magick/animate.c:68:
./magick/widget.h:30: error: expected ??before ??token
./magick/widget.h:36: error: expected ??before ??token
./magick/widget.h:40: error: expected ??before ??token
magick/animate.c:237: error: expected ??before ??token
magick/animate.c:241: error: expected ??before ??token
magick/animate.c: In function 釧nimateImages?
magick/animate.c:276: error: 釪isplay?undeclared (first use in this function)
magick/animate.c:276: error: (Each undeclared identifier is reported only once
magick/animate.c:276: error: for each function it appears in.)
magick/animate.c:277: error: 鈊isplay?undeclared (first use in this function)
magick/animate.c:282: error: 釾rmDatabase?undeclared (first use in this function)
magick/animate.c:283: error: expected ??before 鈘esource_database?
magick/animate.c:294: warning: implicit declaration of function 釾OpenDisplay?
magick/animate.c:295: error: expected expression before ??token
magick/animate.c:298: warning: implicit declaration of function 釾DisplayName?
magick/animate.c:299: warning: format ?s?expects type 鈉har *? but argument 8 has type 鈏nt?
magick/animate.c:304: warning: implicit declaration of function 釾SetErrorHandler?
magick/animate.c:304: error: 釾Error?undeclared (first use in this function)
magick/animate.c:305: error: 鈘esource_database?undeclared (first use in this function)
magick/animate.c:305: warning: implicit declaration of function 釾GetResourceDatabase?
magick/animate.c:307: warning: implicit declaration of function 釾GetResourceInfo?
magick/animate.c:309: error: 釾ResourceInfo?has no member named 鈏mage_geometry?
magick/animate.c:310: error: 釾ResourceInfo?has no member named 鈏mmutable?
magick/animate.c:312: warning: implicit declaration of function 釾AnimateImages?
magick/animate.c:314: warning: implicit declaration of function 釾CloseDisplay?
magick/animate.c:315: warning: implicit declaration of function 釾DestroyResourceInfo?
magick/animate.c: At top level:
magick/animate.c:358: error: expected ??before ??token
magick/animate.c:722: error: expected ??before ??token
magick/animate.c:1179: error: expected ??before ??token
magick/animate.c:2828: error: expected ??before ??token
make[1]: *** [magick/magick_libMagickCore_la-animate.lo] Error 1
make[1]: Leaving directory `/usr/local/ImageMagick-6.4.0'
make: *** [all] Error 2

展开
收起
爱吃鱼的程序员 2020-06-04 11:53:52 953 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
    [root@localhost ImageMagick-6.4.0]# make
    make  all-am
    make[1]: Entering directory `/usr/local/ImageMagick-6.4.0'
    /bin/sh ./libtool --silent --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I./config     -g -O2 -Wall -W -pthread -MT coders/coders_art_la-art.lo -MD -MP -MF coders/.deps/coders_art_la-art.Tpo -c -o coders/coders_art_la-art.lo `test -f 'coders/art.c' || echo './'`coders/art.c
    mv -f coders/.deps/coders_art_la-art.Tpo coders/.deps/coders_art_la-art.Plo
    /bin/sh ./libtool --silent --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I./config  -I./ltdl -I./ltdl    -g -O2 -Wall -W -pthread -MT magick/magick_libMagickCore_la-animate.lo -MD -MP -MF magick/.deps/magick_libMagickCore_la-animate.Tpo -c -o magick/magick_libMagickCore_la-animate.lo `test -f 'magick/animate.c' || echo './'`magick/animate.c
    In file included from ./magick/animate-private.h:26,
                     from magick/animate.c:44:
    ./magick/xwindow-private.h:27:21: error: X11/Xos.h: No such file or directory
    ./magick/xwindow-private.h:28:22: error: X11/Xlib.h: No such file or directory
    ./magick/xwindow-private.h:29:23: error: X11/Xatom.h: No such file or directory
    ./magick/xwindow-private.h:30:28: error: X11/cursorfont.h: No such file or directory
    ./magick/xwindow-private.h:31:24: error: X11/keysym.h: No such file or directory
    ./magick/xwindow-private.h:32:27: error: X11/Xresource.h: No such file or directory
    ./magick/xwindow-private.h:33:23: error: X11/Xutil.h: No such file or directory
    In file included from ./magick/animate-private.h:26,
                     from magick/animate.c:44:
    ./magick/xwindow-private.h:142: error: expected specifier-qualifier-list before 'Pixmap'
    ./magick/xwindow-private.h:192: error: expected specifier-qualifier-list before 'XFontStruct'
    ./magick/xwindow-private.h:215: error: expected specifier-qualifier-list before 'XColor'
    ./magick/xwindow-private.h:240: error: expected specifier-qualifier-list before 'XrmDatabase'
    ./magick/xwindow-private.h:346: error: expected specifier-qualifier-list before 'Window'
    ./magick/xwindow-private.h:451: error: expected specifier-qualifier-list before 'Display'
    ./magick/xwindow-private.h:507: error: expected ')' before 'const'
    ./magick/xwindow-private.h:512: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XMakeCursor'
    ./magick/xwindow-private.h:515: error: expected ')' before '*' token
    ./magick/xwindow-private.h:519: error: expected ')' before '*' token
    ./magick/xwindow-private.h:531: error: expected ')' before '*' token
    ./magick/xwindow-private.h:568: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XWindowByID'
    ./magick/xwindow-private.h:573: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    ./magick/xwindow-private.h:576: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XGetResourceDatabase'
    ./magick/xwindow-private.h:579: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    ./magick/xwindow-private.h:582: error: expected ')' before '*' token
    ./magick/xwindow-private.h:585: warning: type defaults to 'int' in declaration of 'XColor'
    ./magick/xwindow-private.h:585: error: expected ';', ',' or ')' before '*' token
    In file included from magick/animate.c:44:
    ./magick/animate-private.h:29: error: expected ')' before '*' token
    ./magick/animate-private.h:32: error: expected ')' before '*' token
    In file included from magick/animate.c:68:
    ./magick/widget.h:30: error: expected ')' before '*' token
    ./magick/widget.h:36: error: expected ')' before '*' token
    ./magick/widget.h:40: error: expected ')' before '*' token
    magick/animate.c:237: error: expected ')' before '*' token
    magick/animate.c:241: error: expected ')' before '*' token
    magick/animate.c: In function 'AnimateImages':
    magick/animate.c:276: error: 'Display' undeclared (first use in this function)
    magick/animate.c:276: error: (Each undeclared identifier is reported only once
    magick/animate.c:276: error: for each function it appears in.)
    magick/animate.c:277: error: 'display' undeclared (first use in this function)
    magick/animate.c:282: error: 'XrmDatabase' undeclared (first use in this function)
    magick/animate.c:283: error: expected ';' before 'resource_database'
    magick/animate.c:294: warning: implicit declaration of function 'XOpenDisplay'
    magick/animate.c:295: error: expected expression before ')' token
    magick/animate.c:298: warning: implicit declaration of function 'XDisplayName'
    magick/animate.c:299: warning: format '%s' expects type 'char *', but argument 8 has type 'int'
    magick/animate.c:304: warning: implicit declaration of function 'XSetErrorHandler'
    magick/animate.c:304: error: 'XError' undeclared (first use in this function)
    magick/animate.c:305: error: 'resource_database' undeclared (first use in this function)
    magick/animate.c:305: warning: implicit declaration of function 'XGetResourceDatabase'
    magick/animate.c:307: warning: implicit declaration of function 'XGetResourceInfo'
    magick/animate.c:309: error: 'XResourceInfo' has no member named 'image_geometry'
    magick/animate.c:310: error: 'XResourceInfo' has no member named 'immutable'
    magick/animate.c:312: warning: implicit declaration of function 'XAnimateImages'
    magick/animate.c:314: warning: implicit declaration of function 'XCloseDisplay'
    magick/animate.c:315: warning: implicit declaration of function 'XDestroyResourceInfo'
    magick/animate.c: At top level:
    magick/animate.c:358: error: expected ')' before '*' token
    magick/animate.c:722: error: expected ')' before '*' token
    magick/animate.c:1179: error: expected ')' before '*' token
    magick/animate.c:2828: error: expected ')' before '*' token
    make[1]: *** [magick/magick_libMagickCore_la-animate.lo] Error 1
    make[1]: Leaving directory `/usr/local/ImageMagick-6.4.0'
    make: *** [all] Error 2
    重新发送以下错误信息
    ######

    重发错误

    /magick_libMagickCore_la-animate.lo

    ###### ./magick/xwindow-private.h:27:21: error: X11/Xos.h: No such file or directory

    上面不是有这句么 X11找不到嘛 我也整了好久 只要在ocnfigure 的时候wintout x11 就可以了 

    ./configure --without-x
    make && make install

    2020-06-04 16:48:03
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Debian GNU/Linux 安全合规之路 立即下载
Decian GNU/Linux安全合规之路 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载