1827283 Members
3436 Online
109717 Solutions
New Discussion

Installing gcc in HP-UX

 
Harichand M V
Advisor

Installing gcc in HP-UX

When i tried to install gcc-ia64-4[1].2.1.depot.gz in HP-UX
by the command
swinstall -s gcc-ia64-4[1].2.1.depot gcc
I get the error


======= 03/29/08 15:05:01 IST BEGIN swinstall SESSION
(non-interactive) (jobid=apacheuniv-0012)

* Session started for user "root@apacheuniv".

* Beginning Selection
ERROR: "apacheuniv:/": You do not have the required permissions to
select this target. Check permissions using the "swacl"
command or see your system administrator for assistance. Or,
to manage applications designed and packaged for nonprivileged
mode, see the "run_as_superuser" option in the "sd" man page.
* Target connection failed for "apacheuniv:/".
ERROR: More information may be found in the daemon logfile on this
target (default location is
apacheuniv:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 03/29/08 15:05:27 IST END swinstall SESSION (non-interactive)
(jobid=apacheuniv-0012)


Somebody please help!!!

Thanks in advance..
9 REPLIES 9
Jeeshan
Honored Contributor

Re: Installing gcc in HP-UX

what is your OS and machine model?
a warrior never quits
Harichand M V
Advisor

Re: Installing gcc in HP-UX

#uname -a

HP-UX apacheun B.11.31 U ia64

Jeeshan
Honored Contributor

Re: Installing gcc in HP-UX

first unzip the depot

gunzip gcc-ia64-4[1].2.1.depot.gz

then use

#swinstall -s /full_path_depot/gcc-ia64-4[1].2.1.depot

if it stay in /tmp

#swinstall -s /tmp/gcc-ia64-4[1].2.1.depot
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: Installing gcc in HP-UX

first u have to remve the extension gz
by using gunzip command
gunzip gcc-ia64-4[1].2.1.depot.gz
then u will get gunzip gcc-ia64-4[1].2.1.depot
then u can install

swinstall -s u directroy gcc-ia64-4[1].2.1.depot
if u are in /usr/local directroy where u downlaoded the above file and gunzip
then
u can use swinstall -s /usr/local/gcc-ia64-4[1].2.1.depot

then it will install
Harichand M V
Advisor

Re: Installing gcc in HP-UX

I am getting the same error

======= 03/29/08 15:05:01 IST BEGIN swinstall SESSION
(non-interactive) (jobid=apacheuniv-0012)

* Session started for user "root@apacheuniv".

* Beginning Selection
ERROR: "apacheuniv:/": You do not have the required permissions to
select this target. Check permissions using the "swacl"
command or see your system administrator for assistance. Or,
to manage applications designed and packaged for nonprivileged
mode, see the "run_as_superuser" option in the "sd" man page.
* Target connection failed for "apacheuniv:/".
ERROR: More information may be found in the daemon logfile on this
target (default location is
apacheuniv:/var/adm/sw/swagentd.log).
* Selection had errors.





Sajjad Sahir
Honored Contributor

Re: Installing gcc in HP-UX

start
/usr/sbin/swagentd -r

then it will work if it is not working tell me
again
i will tell u another solution also pls
assign points to the peoples also
Harichand M V
Advisor

Re: Installing gcc in HP-UX

Thanks it is working..

But I am getting an Interactive session.

I dont know how to handle it..

Please tell me how..
Harichand M V
Advisor

Re: Installing gcc in HP-UX

Thanks I was able to install with the command

# swinstall -s /opt/gcc-ia64-4[1].2.1.depot GNU_C_C++
Harichand M V
Advisor

Re: Installing gcc in HP-UX

Thanks to all

# swinstall -s /opt/gcc-ia64-4[1].2.1.depot GNU_C_C++