This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

(OSX) libcairo.2.dylib claims libfreetype.6.dylib provides an older package than it does

0
1

Just updated from 1.5 to 1.6.5 on my Macbook Pro and now Wireshark will not launch. Checking the crash file, I see this:

Dyld Error Message:
  Library not loaded: /usr/X11/lib/libfreetype.6.dylib
  Referenced from: /usr/X11/lib/libcairo.2.dylib
  Reason: Incompatible library version: libcairo.2.dylib requires version 14.0.0 or later, but libfreetype.6.dylib provides version 13.0.0

But if I check with otool, my libfreetype.6.dylib says it provides version 14.0.0. I also checked libcairo with otool and it says the libfreetype library provides version 14 as well. Any ideas as to a fix?

  $ otool -L /usr/X11/lib/libfreetype.6.dylib
    /usr/X11/lib/libfreetype.6.dylib:
        /usr/X11/lib/libfreetype.6.dylib (compatibility version 14.0.0, current version 14.2.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
        /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)

$ otool -L /usr/X11/lib/libcairo.2.dylib /usr/X11/lib/libcairo.2.dylib: /usr/X11/lib/libcairo.2.dylib (compatibility version 11003.0.0, current version 11003.2.0) /usr/X11/lib/libpixman-1.0.dylib (compatibility version 21.0.0, current version 21.2.0) /usr/X11/lib/libfontconfig.1.dylib (compatibility version 6.0.0, current version 6.4.0) /usr/X11/lib/libfreetype.6.dylib (compatibility version 14.0.0, current version 14.2.0) /usr/X11/lib/libpng15.15.dylib (compatibility version 20.0.0, current version 20.0.0) /usr/X11/lib/libxcb-shm.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/X11/lib/libX11-xcb.1.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/X11/lib/libxcb-render.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/X11/lib/libxcb.1.dylib (compatibility version 3.0.0, current version 3.0.0) /usr/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)

asked 22 Mar ‘12, 13:58

aubreyw's gravatar image

aubreyw
1123
accept rate: 100%

edited 22 Mar ‘12, 13:58


One Answer:

0

Of course I figure it out right after I ask. Seems the dyld message was misleading. It was not trying to load /usr/X11/lib/libfreetype.6.dylib it was instead trying to use the one bundled with Wireshark.app - /Applications/Wireshark.app/Contents/Resources/lib/libfreetype.6.dylib or maybe its just an artifact from the 1.5 install that I upgraded from. Copied libfreetype.6.dylib from /usr/X11/lib into /Applications/Wireshark.app/Contents/Resources/lib and now it works fine.

answered 22 Mar '12, 14:09

aubreyw's gravatar image

aubreyw
1123
accept rate: 100%

I'm so glad you posted this solution. It wasn't so obvious to me. I just had the same error message after installing Maxima and trying to use its Gnuplot. Copying /usr/X11/lib/libfreetype.6.dylib into /Applications/Gnuplot.app/Contents/Resources/lib fixed it.

(13 Mar '13, 07:03) ferndoc