我最近升级到Snow Leopard。我安装了新的XCode Tools和X11可选安装。我升级到MacPorts的新Snow Leopard二进制文件,做了一个端口selfupdate,重新安装所有端口,ImageMagick无法正常工作。我卸载了ImageMagick端口,重新安装它,并得到以下错误跟踪:
$ sudo port install imagemagick
---> Computing dependencies for ImageMagick
---> Fetching ImageMagick
---> Verifying checksum(s) for ImageMagick
---> Extracting ImageMagick
---> Configuring ImageMagick
---> Building ImageMagick
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/work/ImageMagick-6.5.6-1" && /usr/bin/make -j2 all " returned error 2
Command output: _XSetTextColor in magick_libMagickCore_la-widget.o
_XSetTextColor in magick_libMagickCore_la-widget.o
_XSetTextColor in magick_libMagickCore_la-widget.o
_XSetMatteColor in magick_libMagickCore_la-widget.o
_XSetBevelColor in magick_libMagickCore_la-widget.o
_XSetBevelColor in magick_libMagickCore_la-widget.o
_XDrawMatte in magick_libMagickCore_la-widget.o
_XDrawBeveledButton in magick_libMagickCore_la-widget.o
_XDrawImage in magick_libMagickCore_la-xwindow.o
"_XQueryColor", referenced from:
_XGetWindowColor in magick_libMagickCore_la-xwindow.o
"_XDefaultColormap", referenced from:
_XAnimateImages in magick_libMagickCore_la-animate.o
_XAnimateImages in magick_libMagickCore_la-animate.o
_XAnimateImages in magick_libMagickCore_la-animate.o
_RenderType in magick_libMagickCore_la-annotate.o
_XDisplayImage in magick_libMagickCore_la-display.o
_XDisplayImage in magick_libMagickCore_la-display.o
_XDisplayImage in magick_libMagickCore_la-display.o
_XQueryColorDatabase in magick_libMagickCore_la-xwindow.o
_XSelectWindow in magick_libMagickCore_la-xwindow.o
_XFreeStandardColormap in magick_libMagickCore_la-xwindow.o
_XMakeStandardColormap in magick_libMagickCore_la-xwindow.o
_XMakeStandardColormap in magick_libMagickCore_la-xwindow.o
_XMakeStandardColormap in magick_libMagickCore_la-xwindow.o
_XMakeStandardColormap in magick_libMagickCore_la-xwindow.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [magick/libMagickCore.la] Error 1
make: *** [all] Error 2
Error: Status 1 encountered during processing.
有什么想法吗?我已经安装了所有ImageMagick依赖端口。我应该尝试重新安装它们吗?
答案 0 :(得分:2)
回答我自己的问题以防万一其他人也遇到这个问题。我认为这个问题可能存在于依赖关系中,所以我可以按照正确的顺序重新安装每个ImageMagick依赖项(有20个),或者我可以吹掉MacPorts并重新安装它们。我选择了后者。 ImageMagick之后没有任何问题。