How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all,

below is the problem details:

ora10g@CNORACLE1>which ld
/usr/ucb/ld
ora10g@CNORACLE1>cd /usr/ccs/bin
ora10g@CNORACLE1>ln -s /usr/ucb/ld ld
ln: cannot create ld: File exists
ora10g@CNORACLE1>

how to link it to /usr/ccs/bin?

list the contents of /usr/ccs/bin, it seems like there is already an 'ld' in there.

if so, you may need to rename it -- probably shouldn't rm it. perhaps it is a link pointing elsewhere?

yap i had change the ld in /usr/ucb/ to ld.backup
i solve my problem

ora10g@CNORACLE1>which ld
/usr/ccs/bin/ld

You might just have reordered your PATH to include /usr/ccs/bin before /usr/ucb (or just remove /usr/ucb which contains BSD compatible utilities you probably don't need anyway).

May i know how to reordered the path?
Thanks for helping. :slight_smile:

To reorder the PATH, you simply edit the file where it is set in the last place (possibly ~/.profile) and change the order of its components.

this worked !