Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

installing gcc-3.4.3

SOLVED
Go to solution
Jade Bulante
Frequent Advisor

installing gcc-3.4.3

I need to install gcc 3.4.3. Any ideas which website has it for download and installation instructions for HPUX 11.11.
9 REPLIES
Robert-Jan Goossens
Honored Contributor
Solution

Re: installing gcc-3.4.3

Slawomir Gora
Honored Contributor

Re: installing gcc-3.4.3

A. Clay Stephenson
Acclaimed Contributor

Re: installing gcc-3.4.3

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.4.3/

Just make sure that you swinstall all the dependencies listed and this is a simple swinstall.
If it ain't broke, I can fix that.
Jade Bulante
Frequent Advisor

Re: installing gcc-3.4.3

I'm getting "Cannot establish a lock on this target because of an external error"
Can you help me? I'm using swinstall.
A. Clay Stephenson
Acclaimed Contributor

Re: installing gcc-3.4.3

You are probably missing the swlock file in the depot.

/sbin/init.d/swagentd stop
cd your_depot
cd catalog
touch swlock
chmod 666 swlock
/sbin/init.d/swagentd start
If it ain't broke, I can fix that.
H.Merijn Brand (procura
Honored Contributor

Re: installing gcc-3.4.3

What package did you get? From which site?

It's obviously not from my site, because you are using swinstall. If you got it from my site (see RJ's post), you cannot use swinstall, but you need bzip and tar. Installation instructions are on the main page:

--8<---
Installation

Install it like this:

# cd /usr/local
# bzip2 -d < /var/tmp/gcc-3.4.3-64-11.00-elf64.tbz | tar xf -

And add /usr/local/pa20_64/bin to your $PATH, preferably in /etc/PATH.
-->8---

when you have a software depot, be sure to fetch it as a binary, either in ftp binary mode, or (preferable) with wget:

(example for HP-UX 11.11 (11i):

# cd /tmp
# wget http://hpux.connect.org.uk/ftp/hpux/Gnu/gcc-3.4.3/gcc-3.4.3-sd-11.11.depot.gz
# gzip -d gcc-3.4.3-sd-11.11.depot.gz
# swinstall -s /tmp/gcc-3.4.3-sd-11.11.depot gcc

With swinstall it is important to give the depot as a full absolute path, not a relative path, and it is also important to install all prerequisites in advance. For gcc from the porting center, that would be gettext and libiconv (though I never understand why someone would want compiler messages localized, but that is beside the point)

# wget http://hpux.connect.org.uk/ftp/hpux/Gnu/gettext-0.14.1/gettext-0.14.1-sd-11.11.depot.gz
# gzip -d gettext-0.14.1-sd-11.11.depot.gz
# swinstall -s /tmp/gettext-0.14.1-sd-11.11.depot.gz gettext

# wget http://hpux.connect.org.uk/ftp/hpux/Development/Libraries/libiconv-1.9.2/libiconv-1.9.2-sd-11.11.depot.gz
# gzip -d libiconv-1.9.2-sd-11.11.depot.gz
# swinstall -s /tmp/libiconv-1.9.2-sd-11.11.depot libiconv

Now you have to make sure that you can find gcc in you $PATH environment, preferably in /etc/PATH, so you have it every time you log on.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Lucian_2
Occasional Advisor

Re: installing gcc-3.4.3

Have some problems when I try to :
# gzip -d libiconv-1.9.2-sd-11.11.depot.gz
gzip: libiconv-1.9.2-sd-11.11.depot.gz: not in gzip format

also for
# gzip -d gcc-3.4.3-sd-11.11.depot.gz
gzip: gcc-3.4.3-sd-11.11.depot.gz: not in gzip format

#/usr/contrib/bin/gzip -V
gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H

What to do?
H.Merijn Brand (procura
Honored Contributor

Re: installing gcc-3.4.3

What format is it in then?

# file libiconv-1.9.2-sd-11.11.depot.gz
also for
# file gcc-3.4.3-sd-11.11.depot.gz

if both say "tar",

# mv libiconv-1.9.2-sd-11.11.depot.gz libiconv-1.9.2-11.11.sd
# swinstall -s `pwd`/libiconv-1.9.2-11.11.sd libiconv

also for
# file gcc-3.4.3-sd-11.11.depot.gz gcc-3.4.3-11.11.sd
# swinstall -s `pwd`/gcc-3.4.3-11.11.sd gcc

if they say BZip or BZip2, use bzip2 to unzip instead of gzip

but above all, be sure to use BINARY transfers for the files when using FTP

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Lucian_2
Occasional Advisor

Re: installing gcc-3.4.3

Excellent, it works fine.
Thanks a lot!