Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 433
achntrl Avatar asked Dec 25 '22 04:12

achntrl


1 Answers

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

like image 169
jacob Avatar answered Jan 05 '23 17:01

jacob