Operating System - Linux
1753779 Members
7583 Online
108799 Solutions
New Discussion юеВ

Re: how to install ansic compiler by swinstall ?

 
SOLVED
Go to solution
T.J. Yang
Frequent Advisor

how to install ansic compiler by swinstall ?

This is the file I downloaded using my subscription account,

B3899BA,r=B.11.02.10,a=HP-UX_B.11.00_32_64.tar

When I untar it, it generated a group of directoris.

bash-2.05a# ls C-ANSI-C/
C C-HELP C-MAN
bash-2.05a# ls catalog/
AudioDevKit C-Dev-Tools ImagingDevKit dfiles
Auxiliary-Opt CDEDevKit WDB
C-ANSI-C DebugPrg WDB-GUI
C-Analysis-Tools INDEX X11MotifDevKit
bash-2.05a#

I tried "swinstall -s /tmp/compiler" but still can't get it going.

In the end I have to fall back to CD media but this took me hours effort to locate 5012-1973 CD and Codeword papers.

Just wondering why installation of HP compiler software is kind of diffcult.

Can anyone advise me how to install compiler software I downloaded from itrc SUM ?


Thanks for your help in advance.

tj
7 REPLIES 7
Steven E. Protter
Exalted Contributor
Solution

Re: how to install ansic compiler by swinstall ?

Shalom tj

swinstall -s /tmp/compiler \*

Thats all.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
T.J. Yang
Frequent Advisor

Re: how to install ansic compiler by swinstall ?

Thanks the great tip.

tj
T.J. Yang
Frequent Advisor

Re: how to install ansic compiler by swinstall ?

My temp compiler directory is in /opt/compiler.

Following is the error log when I try to run "swinstall -s /opt/compiler \*" command.


/var/adm/sw/swagentd.log

ERROR: The target "/opt/compiler" could not be opened. pid=24362
03/26/06 18:53:33 MST
* Agent pid=24362 completed. 03/26/06 18:53:33 MST
* Agent pid=24359 completed. 03/26/06 18:53:33 MST
* Started install agent on "/" for root@b-hp11, pid=24378,
03/26/06 18:54:10 MST
* Started source agent on "/opt/compiler" for root@b-hp11,
pid=24381, 03/26/06 18:54:11 MST
ERROR: Cannot lock depot/root at "/opt/compiler" because the lock
file "/opt/compiler/catalog/swlock" is not there and cannot be
created. This lock file should always exist. The lock file
is probably missing due to manual changes to the depot/root,
or due to a problem with one of the tools that created or
modified the depot/root.
ERROR: The target "/opt/compiler" could not be opened. pid=24381
03/26/06 18:54:11 MST
* Agent pid=24381 completed. 03/26/06 18:54:11 MST
* Agent pid=24378 completed. 03/26/06 18:54:25 MST
* Started install agent on "/" for root@b-hp11, pid=24389,
03/26/06 18:57:51 MST
* Started source agent on "/opt/compiler" for root@b-hp11,
pid=24392, 03/26/06 18:57:51 MST
ERROR: Cannot lock depot/root at "/opt/compiler" because the lock
file "/opt/compiler/catalog/swlock" is not there and cannot be
created. This lock file should always exist. The lock file
is probably missing due to manual changes to the depot/root,
or due to a problem with one of the tools that created or
modified the depot/root.
ERROR: The target "/opt/compiler" could not be opened. pid=24392
03/26/06 18:57:52 MST
* Agent pid=24392 completed. 03/26/06 18:57:52 MST
* Agent pid=24389 completed. 03/26/06 18:57:52 MST
T.J. Yang
Frequent Advisor

Re: how to install ansic compiler by swinstall ?

"touch /opt/compiler/catalog/swlock" looks doing the trick.

tj
Mustafa Gulercan
Respected Contributor

Re: how to install ansic compiler by swinstall ?

hi tj;

follow these steps:
1- move the *.tar file /tmp
2-extract the tar file
tar -xvf *.tar
3- create depot file with create depot
4- swinstall -s /tmp/
be sure write depot's full path

regards

mustafa
rariasn
Honored Contributor

Re: how to install ansic compiler by swinstall ?

Hi Tj.

# cp -p B3899BA,r=B.11.02.10,a=HP-UX_B.11.00_32_64.tar /tmp

# tar tvf /tmp/B3899BA,r=B.11.02.10,a=HP-UX_B.11.00_32_64.tar|more

* To view format (relative or absolute path).

# mkdir /tmp/ansic
# cd /tmp/ansic
# tar xvf /tmp/B3899BA,r=B.11.02.10,a=HP-UX_B.11.00_32_64.tar .
# ll

# export DISPLAY=xxxxxx:0

# swinstall -s /tmp/ansic

..
ran
Dennis Handly
Acclaimed Contributor

Re: how to install ansic compiler by swinstall ?

Just to make sure you understood what Steven was saying. You do NOT untar a SD depot.
You take the file you have and use as root:
swinstall -s $PWD/B3899BA,r=B.11.02.10,a=HP-UX_B.11.00_32_64.tar \*

>Can anyone advise me how to install compiler software I downloaded from itrc SUM?

Aren't there installation instructions there?