我正在尝试在我托管的 linux 机器上构建 Ghostscript (v 9.06),以便我可以操作 PDF 文件。一切都很顺利./configure
and make
,但后来我收到以下错误:
../gs/base/x_.h:135:29: error: X11/Intrinsic.h: No such file or directory
之后我得到了一个带有有趣â
字符的错误列表,如下所示:
../gs/base/gdevx.c:1138: error: âgx_device_Xâ has no member named âtextâ
这里有什么问题,解决方法是什么?我认为这是一个符号链接问题,所以我检查了我的 X11 目录的位置并运行了以下命令:
ln -s X11 /usr/include/X11
我又跑make
了,但没有什么不同。有任何想法吗?
编辑
这是错误的前几行......其余的几乎都是一样的:
../gs/base/x_.h:135:29: error: X11/Intrinsic.h: No such file or directory
../gs/base/x_.h:136:30: error: X11/StringDefs.h: No such file or directory
../gs/base/x_.h:137:25: error: X11/Shell.h: No such file or directory
In file included from ../gs/base/gdevx.c:33:
../gs/base/gdevx.h:30: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âgdev_x_resourcesâ
../gs/base/gdevx.h:32: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âgdev_x_fallback_resourcesâ
../gs/base/gdevx.h:119: error: expected specifier-qualifier-list before âPixelâ
../gs/base/gdevx.c:217: warning: excess elements in struct initializer
../gs/base/gdevx.c:217: warning: (near initialization for âgs_x11_deviceâ)
../gs/base/gdevx.c:217: warning: excess elements in struct initializer
../gs/base/gdevx.c:217: warning: (near initialization for âgs_x11_deviceâ)
../gs/base/gdevx.c:217: error: extra brace group at end of initializer
../gs/base/gdevx.c:217: error: (near initialization for âgs_x11_deviceâ)
最后几行是:
make[2]: *** [obj/gdevx.o] Error 1
make[2]: Leaving directory `/root/ghostpdl-9.06/main'
make[1]: *** [pdl-product] Error 2
make[1]: Leaving directory `/root/ghostpdl-9.06/main'
make: *** [pcl] Error 2