Understanding missing dynlib files on darwin

Hi there,

when I’m in my nix-shell environments. I’m often seeing errors like this:

> /nix/store/1v7fqs5ihrp6l44sncsji32c64ldgsvy-ruby-3.2.2/lib/libruby-3.2.2.dylib' (no such file)

and, the error is correct these file’s dont exist.

However, for eg, this one does:


Is anyone able to help me understand why this and similar situations might exist or what it means, and what I can do about it?


OK, solved… so for anyone else that is looking for something like this, the cause, in this case, was that files in the gem cache (.local/share/gem/…) were links to files that no longer existed, flushing out this cache and rebundling gave me a working ruby.

1 Like