2012-03-20 159 views
4

其實我想將現有的Ghostscript從版本9.02更新到9.05最新版本。當我運行使9.05包裏面,我得到以下錯誤:將GhostScript 9.02升級到9.05

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 X獅子作爲我的開發機。

我可以知道我該如何克服?你的幫助是非常讚賞。謝謝。

回答

5

我認爲你有兩種可能的解決方案。首先,看看「注:」部分中這個鏈接: http://www.ghostscript.com/doc/current/Make.htm#MacOSX

其次,儘量做:

./configure --with-libiconv=no 

這將禁用OpenPrinting矢量(opvp)設備,但因爲這是長過時,我懷疑你需要使用它。