On my Snow Leopard iMac, X11 is broken. I get:

dyld: Symbol not found: __cg_DGifGetLine Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO Expected in: /opt/local/lib/libGIF.dylib in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO

when trying to run an OpenGL executable and http://codepad.org/HzjwS9wh when I try to run X11 directly.

I've reinstalled X11 from the original discs and the same thing happens, so I install XQuartz:

$ echo $DISPLAY

$ launchctl list | grep xquartz
-       0       org.macosforge.xquartz.startx

This fails as well and I get http://codepad.org/NGowe0UR

I update to Mountain Lion, the problem persists, any ideas?

2 Answers 2


Take a look at this page.

It suggest trying sudo ln -sf /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib /opt/local/lib/libGIF.dylib in Terminal.

(in your case; this exact command is not on the linked page)

  • installing ML solved the issue Sep 23, 2012 at 21:51
  • @nyiotis glad it's working now! Can anyone test this to make sure that this works, too?
    – Ethan Lee
    Sep 23, 2012 at 21:58

installing XQuartz on ML solves the issue

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .