Operating System - HP-UX
1831614 Members
2144 Online
110027 Solutions
New Discussion

Re: How to Set Gcc a default Compiler in HP-UX11.11 PA-RISC for Oracle 10g

 
SOLVED
Go to solution
prog
Occasional Advisor

How to Set Gcc a default Compiler in HP-UX11.11 PA-RISC for Oracle 10g

I have Oracle 10g installed on HP-UX 11.11 PA-RISC, when i type gcc on command prompt it says sh:gcc not found, but when i run gcc from /opt/gcc--folder it works (give return as no input file found.
i want that when i type gcc at # it should run from there.

How to set path???
6 REPLIES 6
Univer_1
Valued Contributor
Solution

Re: How to Set Gcc a default Compiler in HP-UX11.11 PA-RISC for Oracle 10g

you should add the path /opt/gcc in your login script "$HOME/.profile" like this:

PATH=/usr/sbin:$PATH:/sbin:/home/root:/opt/gcc

then relogin
Dennis Handly
Acclaimed Contributor

Re: How to Set Gcc a default Compiler in HP-UX11.11 PA-RISC for Oracle 10g

Unless Oracle checks both cc and gcc, you may have to tell it that gcc is available.
prog
Occasional Advisor

Re: How to Set Gcc a default Compiler in HP-UX11.11 PA-RISC for Oracle 10g

Hi Dennill
Can you pls tell me how to do ??
Steven E. Protter
Exalted Contributor

Re: How to Set Gcc a default Compiler in HP-UX11.11 PA-RISC for Oracle 10g

Shalom,

Oracle's compiler requirements for HP-UX are very specific. I do not believe that gcc will work to compile Oracle, which as I recall requires HP's Ansi C or C++.

If you are attempting to get around paying for the correct software for Oracle compilation you risk voiding your support contract with Oracle. There is no margin for variance from Oracle's installation instructions.

If you are not trying to use it to compile oracle binaries then just make sure is before the OS compiler in PATH and SHLIB_PATH variables.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: How to Set Gcc a default Compiler in HP-UX11.11 PA-RISC for Oracle 10g

>Can you pls tell me how to do??

I don't know, I was just cautioning you to read Oracle's documentation.

Are you installing gcc so you can install oracle? If so the bundled C compiler in /usr/ccs/bin/ should work. Make sure that is in your path the same as Univer suggested.
Doru Iulian Barit
Occasional Advisor

Re: How to Set Gcc a default Compiler in HP-UX11.11 PA-RISC for Oracle 10g

Hi,

If it is only temporary ( Oracle upgrade etc.) necessary you ca install HP C/aC++ Developer's Bundle for Evaluation form
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AAEVAL

Best regards,
Doru Barit