I have no idea, but I have a clue that if my machine did this, I would try to figure out why it suddenly couldn't find X first, before just writing links.
Perhaps the $PATH in one of your resource files was changed and your system no longer knows where to search? Maybe you started from a different directory than you normally do?
I hope somebody who knows more about this replies! I'll keep my fingers crossed for you!