Operating System - HP-UX
1834941 Members
2117 Online
110071 Solutions
New Discussion

Re: How to check that gcc is working or not for HP UX.

 
Viswanadhan
Regular Advisor

How to check that gcc is working or not for HP UX.

Hi Admin,

Just i have installed gcc-2.95.3-11.00.sd without proble.
It got installed at /opt/gcc directory, and i made entry in .profile file.

How i know that gcc is working or not.

Regards,
Viswa.
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: How to check that gcc is working or not for HP UX.

Shalom,

Perhaps, use the gmake or gcc to compile some code.

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
A. Clay Stephenson
Acclaimed Contributor

Re: How to check that gcc is working or not for HP UX.

The easiest way is to create a small c file, myprog.c, and compile it:

--------------------------------
#include

int main()
{
(void) printf("Hello world\n");
return(0);
}

-----------------------------------

gcc myprog.c -o myprog

then execute myprog.
If it ain't broke, I can fix that.
Viswanadhan
Regular Advisor

Re: How to check that gcc is working or not for HP UX.

Hi All,

With previous program, i got following error.

/opt/gcc/bin> gcc /home/root/hello.c
gcc: installation problem, cannot exec `as': No such file or directory

Regards,
Viswa.
Murat SULUHAN
Honored Contributor

Re: How to check that gcc is working or not for HP UX.

Hi Wiswa

Did you install binutils package?

Best Regards
Murat
Murat Suluhan
Viswanadhan
Regular Advisor

Re: How to check that gcc is working or not for HP UX.

Hi Murat,

I donot think so.

Where can i get it ? Do u have any url for it ?

Regards,
Viswa.

Torsten.
Acclaimed Contributor

Re: How to check that gcc is working or not for HP UX.

Even if you have gcc installed now, you need the Run-time dependencies for it (for your old release).

I cannot understand why you still open one new thread after another regarding the same problem in background.

see
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1173152
and
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1175230



and also the others of your last threads.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
rajdev
Valued Contributor

Re: How to check that gcc is working or not for HP UX.

Hi Viswa,

1. check your PATH an include /usr/ccs/bin if its not there and then try compiling again

PATH=$PATH:/usr/ccs/bin

2. check /usr/ccs/bin/as file is there or not

3. Check the swlogs to see if there was any error during install.

most likely it could be due to PATH problem, so point 1 should help to resolve the problem.

Regards,
RD
Murat SULUHAN
Honored Contributor

Re: How to check that gcc is working or not for HP UX.

Hi Viswa

HP-Ux software porting center has new version of gcc with binutils

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-4.2.1/

Best Regards
Murat
Murat Suluhan
Viswanadhan
Regular Advisor

Re: How to check that gcc is working or not for HP UX.

Thanks to All.