Operating System - HP-UX
1833780 Members
2563 Online
110063 Solutions
New Discussion

Unable to swinstall GCC on HP-UX 11i v2

 
SOLVED
Go to solution
GSK_2
Advisor

Unable to swinstall GCC on HP-UX 11i v2

After downloading from the site
(http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,7663,00.html)
from the option : HP-GCC 4.0.2 Intel Itanium 2 microarchitecture (gz, http, 57409 KB)
I have made some changes as suggested by some ( give below)but invain

Emiel van Grinsven Apr 19, 2002 12:50:39 GMT 10 pts

--------------------------------------------------------------------------------
Hi,

I encountered the same problem many times with clients. They all had a mistake in the host file.
Check it for double entries of the .
I know it sounds corcky but it could seriously be your problem.

grt, Emiel

Mateja Bezjak Apr 19, 2002 13:03:03 GMT 8 pts

--------------------------------------------------------------------------------
Hi,

Yes, /etc/hosts file might be the problem. Try replacing:

#127.0.0.1 localhost loopback
127.0.0.1
with just one line:
127.0.0.1 localhost loopback

MY /etc/hosts file had these entries. I tried as told above. Just for info giving hosts file entries
/etc/hosts


127.0.0.1 SERVERNAME
127.0.0.1 localhost loopback
1xx.1xx.1xx.xx SERVERNAME

Can some one help me out.
Just some info of the server its rx7620 Itanium 2 architecture

I have encountered the following :

This is from swagentd.log

======= 03/14/06 05:50:41 CST BEGIN install AGENT SESSION (pid=1565)
(jobid=AmerMA-0043)
* Agent session started for user "root@amerma". (pid=1565)
* Beginning Analysis Phase.
* Source: amerma:/home/gcc-4.1.0-ia64-11.23.depot
* Target: AmerMA:/
* Target logfile: AmerMA:/var/adm/sw/swagent.log
* Reading source for product information.
* Reading source for file information.
* Executing preDSA command.
NOTE: The used disk space on filesystem "/usr" is estimated to
increase by 120600 Kbytes.
This will leave 907312 Kbytes of available user disk space
after the installation.
NOTE: The used disk space on filesystem "/var" is estimated to
increase by 128 Kbytes.
This will leave 2109648 Kbytes of available user disk space
after the installation.
* Summary of Analysis Phase:
* 3 of 3 filesets had no Errors or Warnings.
* The Analysis Phase succeeded.
* Beginning the Install Execution Phase.
* Filesets: 3
* Files: 676
* Kbytes: 117072
* Installing fileset "gcc.gcc-INC,r=4.1.0" (1 of 3).
ERROR: Could not access remote file "/usr/local/include/ansidecl.h"
in software item
"gcc.gcc-INC,r=4.1.0,a=HP-UX_B.11.23_64,v=:/usr/local" due to
an internal error on the remote system.
ERROR: Failed installing fileset "gcc.gcc-INC,r=4.1.0". Check the
above output for details.
* Retry number 1 of 1 for loading files for fileset
"gcc.gcc-INC,r=4.1.0".
* Installing fileset "gcc.gcc-INC,r=4.1.0" (1 of 3).
ERROR: Could not access remote file "/usr/local/include/ansidecl.h"
in software item
"gcc.gcc-INC,r=4.1.0,a=HP-UX_B.11.23_64,v=:/usr/local" due to
an internal error on the remote system.
ERROR: Failed installing fileset "gcc.gcc-INC,r=4.1.0". Check the
above output for details.
NOTE: The Install Phase has suspended. Check the above output for
reasons.


* Aborting the Install Phase.

======= 03/14/06 05:50:43 CST END install AGENT SESSION (Aborted)
(pid=1565) (jobid=AmerMA-0043)

WHILE I WAS INSTALLING IT GAVE ME THE FOLLOWING ERROR:
[root@AmerMA]/: swinstall -s /home/gcc-4.1.0-ia64-11.23.depot gcc
======= 03/14/06 05:50:40 CST BEGIN swinstall SESSION
(non-interactive) (jobid=AmerMA-0043)
* Session started for user "root@AmerMA".
* Beginning Selection
* Target connection succeeded for "AmerMA:/".
* Source: /home/gcc-4.1.0-ia64-11.23.depot
* Targets: AmerMA:/
* Software selections:
gcc.gcc-INC,r=4.1.0,a=HP-UX_B.11.23_64
gcc.gcc-MAN,r=4.1.0,a=HP-UX_B.11.23_64
gcc.gcc-RUN,r=4.1.0,a=HP-UX_B.11.23_64
* Selection succeeded.
* Beginning Analysis and Execution
* Session selections have been saved in the file
"/.sw/sessions/swinstall.last".
* The analysis phase succeeded for "AmerMA:/".
ERROR: "AmerMA:/": 1 files had errors during this operation.
ERROR: "AmerMA:/": 1 filesets had errors.
* The execution phase failed for "AmerMA:/".
* Analysis and Execution had errors.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log AmerMA-0043 @ AmerMA:/".

======= 03/14/06 05:50:44 CST END swinstall SESSION (non-interactive)
(jobid=AmerMA-0043)
4 REPLIES 4
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Unable to swinstall GCC on HP-UX 11i v2

Hi,

# nslookup hostname
# nslookup ip_of_hostname

both commands should have the same output.

Did you restart the swagentd after you have changed the /etc/hosts file ?

# swagentd -k
# swagentd -r

Regards,
Robert-Jan
Arunvijai_4
Honored Contributor

Re: Unable to swinstall GCC on HP-UX 11i v2

Hello,

After you made the changes in /etc/hosts file, have you restarted swagentd ?

# /sbin/init.d/swagentd stop
# /sbin/init.d/swagentd start

Also, make sure /etc/hosts entries are valid.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
GSK_2
Advisor

Re: Unable to swinstall GCC on HP-UX 11i v2

Hi,

Thank you very much. It just worked.

Regards,
Satish
GSK_2
Advisor

Re: Unable to swinstall GCC on HP-UX 11i v2

Thanks for both.