Operating System - HP-UX
1832363 Members
2413 Online
110041 Solutions
New Discussion

Re: How to set a PATH for gcc in HP-UX 11.11

 
prog
Occasional Advisor

How to set a PATH for gcc in HP-UX 11.11

I have installed gcc compiler in my HP-UX 11.11, Which is installed by default in /opt
when i run command gcc fron /opt/gcc64 it is rnning
but when i running it from #gcc (from root)
it say no sh found
Can anybody tell me how to set a PATH
By doing which it can be run from #


Thanks Waiting for reply Its Urgent PLSsss
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: How to set a PATH for gcc in HP-UX 11.11

If you swinstall a product and and want it to be in all user's PATHs, there is configuration control script that adds it to /etc/PATH.

Then in /etc/profile or each user's .profile you can do something like:
PATH=$PATH:$(< /etc/PATH)

If gcc didn't do that, or you don't want to do that, then just do:
PATH=$PATH:/opt/gcc64
SANTOSH S. MHASKAR
Trusted Contributor

Re: How to set a PATH for gcc in HP-UX 11.11

Hi,

DO this at the end of .profile or /etc/profile .

export PATH=/opt/gcc64:$PATH


Thats all
V. Nyga
Honored Contributor

Re: How to set a PATH for gcc in HP-UX 11.11

Hi,

check if the path /opt/gcc64 is in /etc/PATH, if not add it.

Volkmar
*** Say 'Thanks' with Kudos ***
Senthil Prabu.S_1
Trusted Contributor

Re: How to set a PATH for gcc in HP-UX 11.11

Hi,

Add the /opt/gcc64 to your existing PATH variable by
export PATH=/opt/gcc64:$PATH

Then, check it by echoing to confirm your PATH is updated with /opt/gcc64

HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.