实际上我想将现有的Ghostscript从版本9.02更新到9.05最新版本。当我在9.05包中运行make时,我得到以下错误:
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \ XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \ FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \ DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \ DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \ DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \ DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \ DEVICE_DEVS_EXTRA= \ /bin/sh <./obj/ldt.tr Undefined symbols for architecture x86_64: "_iconv_open", referenced from:
_opvp_to_utf8 in gdevopvp.o "_iconv", referenced from:
_opvp_to_utf8 in gdevopvp.o "_iconv_close", referenced from:
_opvp_to_utf8 in gdevopvp.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [bin/gs] Error 1
我使用的是Mac OS Lion X作为我的开发机器。
我可以知道如何克服这个问题?非常感谢你的帮助。谢谢..
答案 0 :(得分:6)
我认为你有两种可能的解决方案。首先,请查看此链接中的“注意:”部分: http://www.ghostscript.com/doc/current/Make.htm#MacOSX
其次,尝试做:
./configure --with-libiconv=no
这将禁用OpenPrinting Vector(opvp)设备,但由于长期弃用,我怀疑你需要使用它。