dyld: Library not loaded: /opt/local/lib/perl5/5.16.1/darwin-thread-multi-2level/CORE/libperl.dylib

Ryan Schmidt ryandesign at macports.org
Tue May 20 13:53:03 PDT 2014


On May 20, 2014, at 15:44, Nick Urbanik wrote:

> $ sudo port rev-upgrade
> --->  Scanning binaries for linking errors: 100.0%
> --->  No broken files found.
> $ perl -v
> dyld: Library not loaded: /opt/local/lib/perl5/5.16.1/darwin-thread-multi-2level/CORE/libperl.dylib
> Referenced from: /opt/local/bin/perl
> Reason: image not found
> Trace/BPT trap
> $
> 
> Finally, I tried sudo port -n upgrade --force perl5.16; still the same
> result with perl -v afterwards.

This makes me think /opt/local/bin/perl is not a symlink to perl5.16 as it should be, but is actually an old copy of perl somehow. Is that possible? In other words, could you have at some point copied /opt/local/bin/perl5.16 to /opt/local/bin/perl for some reason? Let's check if that's the case by running:

ls -ld /opt/local/bin/perl*

And also:

port provides /opt/local/bin/perl



More information about the macports-users mailing list