Mac update_dyld_shared_cache error in terminal

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

dyld: A shared cached file was built against another libSystem.dylib, ignoring the 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 might make this disappear, but that was temporary as the same error message came back today

The solutions seem to be

sudo update_dyld_shared_cache -force

But when I execute this command, I get about 50 lines of errors:

update_dyld_shared_cache: for arch i386 cannot put /usr/lib/libutil.dylib in the shared cache because it does not belong to root update_dyld_shared_cache: for arch i386 cannot put /usr/lib/libtidy.A.dylib in the shared cache because it is not owned by root
...
update_dyld_shared_cache: for arch x86_64 cannot put /usr/lib/libcrypto.0.9.7.dylib in the 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

thanks for the help

Edit: Problem solved with Yosemite

+3


source to share


2 answers


Open Disk Utility, click on "Restore Disk Permissions" and then try again sudo update_dyld_shared_cache -force

. Works great for me :)



+12


source


if you get this error, the owner of the file is not set correctly. so change the owner of the file with chown command , look below like

got terminal and enter the following command:

chown / usr / lib / libutil.dylib



chown / usr / lib / libtidy.A.dylib

chown / usr / lib / libcrypto.0.9.7.dylib

luck

-2


source







All Articles