achntrl
achntrl

Reputation: 51

Mac update_dyld_shared_cache error in the terminal

I had an error message in my terminal a few days ago:

dyld: shared cached file was built against a different libSystem.dylib, ignoring cache.
to update dyld shared cache run: 'sudo update_dyld_shared_cache' then reboot.

I looked it up on the internet and I found that rebooting in safe mode and rebooting again can make this disappear but it was temporary since today, the same error message came back

The solutions seems to be

sudo update_dyld_shared_cache -force

But when I execute this command, I have around 50 lines of errors appearing:

update_dyld_shared_cache: for arch i386, can't put /usr/lib/libutil.dylib in shared cache because it is not owned by root
update_dyld_shared_cache: for arch i386, can't put /usr/lib/libtidy.A.dylib in shared cache because it is not owned by root
...
update_dyld_shared_cache: for arch x86_64, can't put /usr/lib/libcrypto.0.9.7.dylib in shared cache because it is not owned by root
...

Has anyone encountered this problem, and managed to solve it ? If it can help, I'm on Mac OS 10.9.5

Thank you for your help

Edit: The issue solved itself with Yosemite

Upvotes: 5

Views: 10935

Answers (2)

jacob
jacob

Reputation: 3557

Open Disk Utility, click on Repair Disk Permissions, and then try running sudo update_dyld_shared_cache -force again. Worked perfectly for me :)

Upvotes: 14

Shanmuka
Shanmuka

Reputation: 35

if you are getting this error, the owner of the file is not set properly. so change the owner of the file by using chown command, look into below for example

got to terminal and type following command :

chown /usr/lib/libutil.dylib

chown /usr/lib/libtidy.A.dylib

chown /usr/lib/libcrypto.0.9.7.dylib

good luck

Upvotes: -3

Related Questions