Símbolos indefinidos para arquitetura x86_64: Mac OSX ao instalar o ImageMagick

0

Estou tentando instalar o imagemagick e no meu MacOSX do Snow Leopard com homebrew.

quando eu corro:

sudo brew install imagemagick

quebra neste ponto com o seguinte log de erros.

ld: warning: ignoring file /Library/Frameworks/Mono.framework/Versions/2.10.8/lib/libpangoft2-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /Library/Frameworks/Mono.framework/Versions/2.10.8/lib/libpango-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /Library/Frameworks/Mono.framework/Versions/2.10.8/lib/libintl.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
  "_pango_ft2_font_map_new", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_ft2_font_map_set_resolution", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_ft2_font_map_set_default_substitute", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_font_map_create_context", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_language_from_string", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_context_set_language", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_context_set_base_dir", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_context_set_base_gravity", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_context_set_gravity_hint", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_new", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_auto_dir", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_ellipsize", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_justify", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_single_paragraph_mode", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_wrap", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_indent", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_alignment", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_font_description_from_string", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_font_description_set_size", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_font_description", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_font_description_free", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_markup", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_text", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_context_changed", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_get_pixel_extents", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_width", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_layout_set_height", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
  "_pango_ft2_render_layout", referenced from:
      _ReadCAPTIONImage in coders_caption_la-caption.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [coders/caption.la] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install] Error 2
config.log was copied to /Users/kengimel/Library/Logs/Homebrew
==> Build Environment
CPU: 8-core 64-bit sandybridge
MacOS: 10.6.8-i386
Xcode: 3.2.6
CC: /usr/bin/gcc-4.2
CXX: /usr/bin/g++-4.2
LD: /usr/bin/gcc-4.2
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib
MAKEFLAGS: -j8
Error: Failed executing: make install (imagemagick.rb:135)
    
por kengimel 09.04.2012 / 10:58

2 respostas

1

Eu reinstalei libjpeg daqui e depois desvinculei e vinculei jpeg :

brew unlink jpeg
brew link jpeg

Corrigido o erro. Espero que isso funcione para você.

    
por 18.05.2012 / 00:32
0

O que resolvi para mim foi atualizar o brew e depois instalar o imagemagick:

  • brew update
  • brew install imagemagick
por 31.10.2013 / 14:27