I had the same problem. I think it happened when I built perl 5.8.0-RC1. All I did to fix the problem is
rm /usr/bin/ld2 It is a shell script wrapper around
ld I think that it got overwritten when I built the new perl RC. It had some weird paths in it, pointing to the directories where I built the RC. I don't know why since I never installed the RC. Anyway, I deleted it and it seems to have been re-created when I re-installed Inline.
--
flounder