This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: After upgrading binutils ld is not found
Chad Lemmen <chad@lemmen.com> writes:
> On Tue, 16 Sep 2003, Peter Barada wrote:
>
>>
>> >I have compiled and installed binutils 2.14, and now ld is not found.
>> >Everything installed into /usr/local/bin, but if I type ld I get this
>> >error: bash: /usr/bin/ld: No such file or directory. The old version of
>> >binutils was installed there, but I removed the rpm package. The new
>> >version of ld is installed in /usr/local/bin, what do I need to change so
>> >the system knows it's there?
>>
>> Is /usr/bin/ld a symbolic link? If so does it point to an executable
>> that exists where the link thinks it is?
>>
>
> No it's not a symbolic link. ld does not exist in /usr/bin. If I
> do ls /usr/bin/ld it says ls: /usr/bin/ld: No such file or directory,
> which is what I would expect since it's not there. If I type just ld from
> any directory I get bash: /usr/bin/ld: No such file or directory. If I
> type 'which ld' it shows /usr/bin/ld, but it's not there.
Looks like your shell still had /usr/bin/ld cached internally. Try "hash
-r".
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."