Terminal error: dyld: Library not loaded

Hello,

In the terminal, when I run a command I often get the following error message, in this example I try to open a file with textmate.
Thanks for your help,
Denis

$ mate test
dyld: Library not loaded: /opt/local/lib/libjpeg.62.dylib
Referenced from: /opt/local//lib/libTIFF.dylib
Reason: no suitable image found. Did find:
/opt/local//lib/libjpeg.62.dylib: can't map
/opt/local/lib/libjpeg.62.dylib: can't map
Trace/BPT trap

macbook, Mac OS X (10.6.2)

Posted on Dec 13, 2009 6:19 AM

Reply
3 replies

Dec 21, 2009 8:24 AM in response to denisjac

Hi,

I got the same problem with swftools. Seems like macports updated jpeg.
I fixed this by manually downgrading jpeg to 6b_3.

*sudo port install jpeg @6b_3*

I also had to activate the version ...
*sudo port activate jpeg @6b_3*

So in /opt/local/lib this link appeared again:
lrwxr-xr-x 1 root admin 20 21 Dez 17:00 libjpeg.62.dylib -> libjpeg.62.0.0.dylib

In case you have to revert this enter:
*sudo port activate jpeg @7*
You may run into problems with other apps.

Best regards,
schmunk

PS: Even better would be just to link also version 6 of the lib into /opt/local/lib ... while keeping version 7 activated.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal error: dyld: Library not loaded

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.