Operating System - HP-UX
1836218 Members
2021 Online
110096 Solutions
New Discussion

Where can i get gcc compiler for HP UX 11.0

 
Viswanadhan
Regular Advisor

Where can i get gcc compiler for HP UX 11.0

Hi Admin,

In one of HP UX does not have any compiler. so im planning to install GCC compiler for HP UX 11.0. Where can i get it for free cost ?

Regards,
Viswa.
27 REPLIES 27
James R. Ferguson
Acclaimed Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Hi:

Merijn graciously offers binary ports here:

http://mirrors.develooper.com/hpux/downloads.html

Regards!

...JRF...
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi James,

Thanks for quick help.

Let me try it.

Regards,
Viswa.
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hello James,

I exteacted the file gcc-2.95.3-11.00.sd.gz, then i got directories "catalog", and "gcc".

Can u guide me now what i have todo ? this is the first Im doing on hp ux. I donot have test machine. I have do on the production server.

Regards,
Viswa.
James R. Ferguson
Acclaimed Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Hi (again) Viswa:

Merijn has installation instructions here:

http://mirrors.develooper.com/hpux/

You may need to download 'bzip2' as a Windows or Linux binary to perform the uncompress since HP-UX 11.0 is deprecated and finding a binary for it is becoming difficult.

http://www.bzip.org/downloads.html

Regards!

...JRF...
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi James,

I have downloaded the "bzip2-095d-parisc-hpux1020", and i donot see any ext for this file.

# tar -xvf bzip*
directory checksum error

Please guide me.

Regards,
Viswa.
Murat SULUHAN
Honored Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Wisva

Try to following command

file bzip2-095d-parisc-hpux1020

If the output like Shell Archive file
you must extract it with following command

sh bzip2-095d-parisc-hpux1020

Best Regards
Murat
Murat Suluhan
Murat SULUHAN
Honored Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Viswa

Try to following command

file bzip2-095d-parisc-hpux1020

If the output like Shell Archive file
you must extract it with following command

sh bzip2-095d-parisc-hpux1020

Best Regards
Murat
Murat Suluhan
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Murat,

I got following error

# uname -a
HP-UX ServerB.11.00 U 9000/800 143941567 unlimited-user license

# file bzip2-095d-parisc-hpux1020
bzip2-095d-parisc-hpux1020: PA-RISC1.1 shared executable dynamically linked

# chmod 755 bzip*

# sh bzip2-095d-parisc-hpux1020
sh: bzip2-095d-parisc-hpux1020: Execute permission denied.

Regards,
Viswa.
James R. Ferguson
Acclaimed Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Hi (again):

I should have known Merijn would have a 'bzip' binary that you could use. From this page:

http://mirrors.develooper.com/hpux/

...search for 'bzip' and download the binary. Make it executable and follow the installation instructions I referenced on his site, above.

Regards!

...JRF...
Murat SULUHAN
Honored Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Viswanadhan

# file bzip2-095d-parisc-hpux1020
bzip2-095d-parisc-hpux1020: PA-RISC1.1 shared executable dynamically linked

file command told you this executable file, so you can change the execution bit
Then run the bzip2 directly as James wrote

Best Regards
Murat

PS: Sorry for my typo and double posting
Murat Suluhan
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Murat & James,

According to doc i gave following command.

# /usr/bin/bzip2 -d /dba/chodv0/gcc*|tar xvf -

Here cursor is blinking( im not getting any output).
Im i correct or anything wrong ?

Regards,
Viswa.
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Murat & James,

According to doc i gave following command.

# /usr/bin/bzip2 -d /dba/chodv0/gcc-2.95.3-11.00.sd.gz|tar xvf -

Here cursor is blinking( im not getting any output).
Im i correct or anything wrong ?

Regards,
Viswa.
Murat SULUHAN
Honored Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Viswanadhan

You run
# /usr/bin/bzip2 -d /dba/chodv0/gcc-2.95.3-11.00.sd.gz|tar xvf -

but it must be

# /usr/bin/bzip2 -d < /dba/chodv0/gcc-2.95.3-11.00.sd.gz|tar xvf -

there must be < after bzip2

Best Regards
Murat

Murat Suluhan
Robert-Jan Goossens_1
Honored Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Viswa,

--
I exteacted the file gcc-2.95.3-11.00.sd.gz, then i got directories "catalog", and "gcc".
--

No need to untar the gcc-2.95.3-11.00.sd depot file, just use gzip to uncompress the gcc-2.95.3-11.00.sd.gz archive.

# /usr/contrib/bin/gunzip /tmp/gcc-2.95.3-11.00.sd.gz
# swinstall -s /tmp/gcc-2.95.3-11.00.sd gcc

Regards,
Robert-Jan
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Murat,

I tried like this

# /usr/bin/bzip2 -d < /dba/chodv0/gcc-3.2-64-11.00-elf64.tbz | tar xf -

Here cursor is blinking, there is no output.

Regards,
Viswa.
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Robert,

I got following error.

# /usr/contrib/bin/gunzip /tmp/gcc-2.95.3-11.00.sd.gz

gunzip: gcc-2.95.3-11.00.sd.gz: not in gzip format
#


Regards,
Viswa.
Robert-Jan Goossens_1
Honored Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Hi,

maybe the version of gzip is to old.

I downloaded gcc-2.95.3-11.00.sd.gz from

http://mirrors.develooper.com/hpux/gcc-2.95.3-11.00.sd.gz

# file gcc-2.95.3-11.00.sd.gz
gcc-2.95.3-11.00.sd.gz: gzip compressed data, was "gcc-2.95.3-11.00.sd", from Unix, max compression
# gunzip gcc-2.95.3-11.00.sd.gz
# ls
gcc-2.95.3-11.00.sd
# file gcc-2.95.3-11.00.sd
gcc-2.95.3-11.00.sd: POSIX tar archive

are you sure you used binary mode to ftp this to your hpux host?

Try to use a more recent OS to gunzip the gz file (Linux/HPUX 11.11 or higher/Solaris etc.) I just tested this gunzip on a linux host without a problem.

Robert-Jan
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Robert,

I downloaded according to ur url.But i got similar error message as follows.

# ls -l

-rw-r----- 1 root sys 14225714 Oct 29 12:52 gcc-2.95.3-11.00.sd.gz

# chmod 755 gcc*
# ls -l
-rwxr-xr-x 1 root sys 14225714 Oct 29 12:52 gcc-2.95.3-11.00.sd.gz
# cd /usr/contrib/bin
# gunzip /dba/chodv0/gcc*
gunzip: /dba/chodv0/gcc-2.95.3-11.00.sd.gz: not in gzip format

# uname -a
HP-UX Server B.11.00 U 9000/800 143941567 unlimited-user license

Regards,
Viswa.
Hasan  Atasoy
Honored Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Robert-Jan Goossens_1
Honored Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Viswa,

do you have a windows xp client with winzip (pro)?

Just discovered this will also unzip the gz file.

Robert-Jan
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Robert,

Im using Win XP Sp2 with winzip 9.0. Im not sure about, winzip is Pro.

Let me try once again.


regards,
Viswa.
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi Robert,

I tried to use win xp with winzip9.0, but i got the simirlar error while extraction.

Regards,
Viswa.
Viswanadhan
Regular Advisor

Re: Where can i get gcc compiler for HP UX 11.0

Hi All,

With great difficulty i installed the gcc compiler as follows.

# mv gcc-2.95.3-11.00.sd.gz gcc-2.95.3-11.00.sd

# swinstall -s /tmp/gcc-2.95.3-11.00.sd gcc
======= 11/06/07 03:52:28 PST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@SERVER".

* Beginning Selection
* Target connection succeeded for "SERVER:/".
* "SERVER:/tmp/gcc-2.95.3-11.00.sd": This source is a tape
device.
* "SERVER:/tmp/gcc-2.95.3-11.00.sd": Cannot open the logfile
on this target or source. Possibly the media is read-only or
there is a permission problem. Check the daemon logfile and
"/var/tmp/swagent.log" on this host for more information.
* Source: /tmp/gcc-2.95.3-11.00.sd
* Targets: SERVER:/
* Software selections:
gcc.gcc-INC,r=2.95.3,a=HP-UX_B.11.00_700/800
gcc.gcc-RUN,r=2.95.3,a=HP-UX_B.11.00_700/800
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/home/root/.sw/sessions/swinstall.last".
* The analysis phase succeeded for "SERVER:/".
* Analysis succeeded.


* Beginning Execution
* The execution phase succeeded for "SERVER:/".
* Execution succeeded.


NOTE: More information may be found in the agent logfile (location
is SERVER:/var/adm/sw/swagent.log).

======= 11/06/07 03:53:16 PST END swinstall SESSION (non-interactive)

I got above output, can any one tell i got installed sucessfully or not.

Regards,
Viswa.
Robert-Jan Goossens_1
Honored Contributor

Re: Where can i get gcc compiler for HP UX 11.0

Nope,

I have extracted the gzip file and uploaded the depot file, try to download it from below link.

http://www.speedyshare.com/394903635.html

Regards,
Robert-Jan