Operating System - HP-UX
1847608 Members
6093 Online
110265 Solutions
New Discussion

symbolic link for cc on hp-ux 11.23 itanium

 
Donald Thaler_1
Advisor

symbolic link for cc on hp-ux 11.23 itanium

i was running into a relink problem with oracle and they said that the cc softlink should point to /opt/aCC/bin/acc... on my system (hp-ux 11.23 itanium) the softlink is pointing to /opt/aCC/bin/cc... should where cc points to be determined by HP or Oracle ??
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: symbolic link for cc on hp-ux 11.23 itanium

Hi Don:

Both are really correct, since HP bundles the C and aC++ compilers as one in 'B9007AA'. n an 11.23 Itanium server of mine:

# ls -il /usr/bin/cc /opt/aCC/bin/aCC /opt/aCC/bin/cc
1111 -r-xr-xr-x 4 bin bin 989344 Jun 4 2009 /opt/aCC/bin/aCC
1111 -r-xr-xr-x 4 bin bin 989344 Jun 4 2009 /opt/aCC/bin/cc
40562 lr-xr-xr-t 1 root sys 15 Feb 11 10:30 /usr/bin/cc -> /opt/aCC/bin/cc

As you can see, the symlink points to '/opt/aCC/bin/cc' but this and '/opt/aCC/bin/aCC' are the same file as the inode values show.

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: symbolic link for cc on HP-UX 11.23 Integrity

>cc softlink should point to /opt/aCC/bin/aCC

This is wrong and not supported.

>on my system the softlink is pointing to /opt/aCC/bin/cc... should where cc points to be determined by HP or Oracle?

This is correct. Where it points is determined by me (HP).

>JRF: Both are really correct

Not really. The softlink should point to a driver with the correct name.

>As you can see, the symlink points to /opt/aCC/bin/cc but this and /opt/aCC/bin/aCC are the same file

Not if you use realpath on the symlink and then the driver may think aCC was invoked.
Better to leave well enough along and not look behind the green curtain. :-)

Dennis Handly
Acclaimed Contributor

Re: symbolic link for cc on HP-UX 11.23 Integrity

This the second time I've heard this misinformation.
If you are trying to reinstall oracle database, what problems are you having? Why do you think that tlink may be bad?
That link could also point to /usr/ccs/bin/cc if you just have the bundled C compiler. Either one should work.