Mac update_dyld_shared_cache error in the terminal

achntrl picture achntrl · Sep 25, 2014 · Viewed 9.6k times · Source

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

Answer

jacob picture jacob · Jan 13, 2015

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