Operating System - HP-UX
1833758 Members
3065 Online
110063 Solutions
New Discussion

How the heck does swcopy work?

 
SOLVED
Go to solution
Terry Kummell
Advisor

How the heck does swcopy work?

First, I have a whole week of experience under my belt with HP-UX. (Can you spell R-O-O-K-I-E?) and I've gotten myself between a rock and a very firm spot. I need to compile some source in 'C'. It is ANSI 'C'... The bundled_cc does not appear to support ansi constructs.... That was a shock... Soooo, I downloaded, per someone on this forum's suggestion, a copy of gcc-2.95.2-sd-10.20.depot. It is sitting in a sub-directory off of my home directory (home/tlk00/gcc). I was able to gunzip the file okay.

My next step was to refer to the man pages regarding swinstall. There I found a reference to swcopy. I entered:
swcopy -f /home/tlk00/gcc/gcc-2.95.2-sd-10.20.depot
no dice, got a message about "can't read". I checked the permissions, chmod to 666 and tried again. Still no dice. Changed directory to /var/inf_depot and tried again,
Still no dice. What the heck am I doing wroing?

The actual interactions are:
# cd /var/inf_depot
# swcopy -f /home/tlk00/gcc/gcc-2.95.2-sd-10.20.depot
ERROR: Could not read input file
"/home/tlk00/gcc/gcc-2.95.2-sd-10.20.depot"

ERROR: Command line parsing failed

Thanks in Advance!

Terry Kummell
CCI-Triad

9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: How the heck does swcopy work?

Denver Osborn
Honored Contributor

Re: How the heck does swcopy work?

You might also try to run swcopy interactively;

# swcopy -i

It could you help avoid any syntax confusion
Solution

Re: How the heck does swcopy work?

You can skip the whole swcopy and just run swinstall on it from where it is.
Just type "swinstall" at the command prompt and you will be given either a Xwindows GUI swinstall or a terminal non-GUI swinstall if your console is not X-capable.
It will churn and think for a minute then give you a sub-window that will ask where the "Source" is the file (.depot) that you have is the source.
1.) Switch "Source Depot type:" to "Local Directory"
2.) Make sure that "Source hostname" is set to your machine.
3.) Set "Source Depot Path" to the .depot file you listed. (i.e. /path/to/my.depot)
4.) Hit OK
5.) Either click (GUI) or hit the space bar (non-Gui) on the gcc bundle.
6.) Hit "tab" then "Actions" (non-GUI) or click on Actions (GUI)
7.) Click on Install(analysis) or arrow down to it and hit enter.
It will go through the analysis first and when you get a "ready" then hit OK and it will install the product.

Hope it helps
Denver Osborn
Honored Contributor

Re: How the heck does swcopy work?

After reading your post, Jeremiah is the one with your solution. Why were you runing swcopy? Here is the syntax you should use to install it from the command line;

swinstall -s /home/tlk00/gcc/gcc-2.95.2-sd-10.20.depot *

Also make note that for GCC there is a dependency needed for it -you can down load it here. http://hpux.cs.utah.edu/ftp/hpux/Gnu/binutils-2.9.1/binutils-2.9.1-sd-10.20.depot.gz

I would suggest downloading this file 1st, gunzip it, then install it.

swinstall -s /path_to_file/binutils-2.9.1-sd-10.20.depot *

After the binutils is installed, run the swinstall command from above to install GCC. If you swinstall GCC before binutils you'll probably get a dependency error.
Denver Osborn
Honored Contributor

Re: How the heck does swcopy work?

In the post from above, with the swinstall syntax my backslash did not print in the post.

be sure to use "*"

backslash* at the end of your swinstall command
Cheryl Griffin
Honored Contributor

Re: How the heck does swcopy work?

Be sure to check out the SD-UX white paper in /usr/share/doc/patch_pgrm.txt

It has the SD-UX commands explained in detail as well as sample of the commands.
"Downtime is a Crime."
Rita C Workman
Honored Contributor

Re: How the heck does swcopy work?

Here's one thing to read...I hope it helps you, as I remember how to spell r-o-o-k-i-e, having been there just 18mo ago.
What I first learned about installing software on HP-UX.
You will either install a patch; a bundle; or from a CD. Sounds like you got either a patch or a bundle. A bundle is just a bunch of patches bundled together. Now you
can do an install from a CD without doing a swcopy. But as a GENERAL rule of thumb you will do an swcopy before you do an swinstall of a patch or a bundle.
And here is the kicker. You must shar it first. What you may ask is shar'ing??
Well if you download a patch or bundle (like PHSS_12345) you would enter:
sh PHSS_12345
And this little utility would create a text file for you to read about the patch/bundle and
a depot file called PHSS_12345.depot.
After you have shar'd the original file you would swcopy it to your depot for installtion.
swcopy -v -s /tmp/patches/PHSS_12345.depot @ /tmp/patch_depot
them to /tmp/patch_depot directory for installation. You can use whatever file structure you want...but you have a place to put your patches/bundles and a different place to put your depot when it's done.>
Then you will get a swcopy menu come up and you run it (looks like swinstall). Mark what you want copied and then do the copy. When it finishes checking and copying the files over to your depot directory you can then run swinstall....
Again here highlight and mark what you want to install and run it.
**********
But !! and this is a big 'but' (no pun intended...)
You may want to double check that you do in fact have what you need....Remember there are alot of us relative newbies our here. Do you have tech support w/HP? You could call 1-800-633-3600 and double check this with them.
I have been turned down a dark path myself....I have learned to carry a candle and matches before I just start down it....and oh yes-----walk, don't run !
Regards,
Rita C Workman
Honored Contributor

Re: How the heck does swcopy work?

Oops, I made a typing mistake...and we know how sensitive HP-UX is to typing errors:
The line to swcopy should read:
swcopy -v -s /tmp/patches/PHSS_12345.depot @ /tmp/patch_depot

After the @ it is a back slash followed by a forward slash (that's not a capital V).

Terry Kummell
Advisor

Re: How the heck does swcopy work?

Thanks everyone! Thanks to all of you, I was able to complete the installation of gcc and the binutils. Hope I can be of help in the future!