Operating System - HP-UX
1829320 Members
1620 Online
109989 Solutions
New Discussion

How can I install gcc package?

 
임인택
Occasional Contributor

How can I install gcc package?



Hello, I'm newbie with HP-UXs. I need to compile qt4 with gcc but I cannot figure out how to install gcc package. I googled about this and I found hp-gcc archive : http://hpacxx.external.hp.com/gcc/

I downloaded one of files in there, gunziped and copied it to /var/spool/sw. But swinstall cannot install that. Of course I tried almost every packages there, none of them worked.

The version of HP-UX is (result of `uname -a`):

HP-UX HOSTNAME B.11.00 U 9000/800 156222710


And, here is what I tried and got.
--------------------
XXXX:/home/XXXXrd]swinstall -s /var/spool/sw/gcc-src-4.1.1.depot gcc-src

======= 2007년4월10일 (화) 오후 3시55분29초 KST BEGIN swinstall
SESSION (non-interactive)

* Session started for user "root@XXXX".

* Beginning Selection
* Target connection succeeded for "XXXX:/".
ERROR: Could not apply the software selection "gcc-src"; it is not
available from depot or root
"XXXX:/var/spool/sw/gcc-src-4.1.1.depot".
* Software selection failed for
"XXXX:/var/spool/sw/gcc-src-4.1.1.depot".
ERROR: No software has been selected.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.



======= 2007년4월10일 (화) 오후 3시55분34초 KST END swinstall SESSION
(non-interactive)




Thanks in advance,
Intaek
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: How can I install gcc package?

>but I cannot figure out how to install gcc package.

You are trying install the gcc source. You would then have to build gcc.

># swinstall -s /var/spool/sw/gcc-src-4.1.1.depot gcc-src

You are using the wrong product name. That depot has: GNU_C_C++_SOURCE
(Use "swlist -s /var/spool/sw/gcc-src-4.1.1.depot" to list the products."

If you use \* instead of gcc-src, you'll install everything, no thinking required.
임인택
Occasional Contributor

Re: How can I install gcc package?

Yeah, I know that. gcc-src-4.1.1.depot was the last one that I tried.

Thanks anyway.
I'll try swlist command.
Senthil Prabu.S_1
Trusted Contributor

Re: How can I install gcc package?

Hi,
Download the gcc depot from http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.1.2/
and give a try!!!!!


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
임인택
Occasional Contributor

Re: How can I install gcc package?


I've downloaded gcc source and now I'm trying to compile it. Thanks.


Inteak.
Senthil Prabu.S_1
Trusted Contributor

Re: How can I install gcc package?

Hi Again,
If your problem is solved, please do assign points to the replies...:-)


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