HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Installation of unzip 5.52 on HP-Ux 11.31

 
Vijay Kumar Dosapati
Occasional Advisor

Installation of unzip 5.52 on HP-Ux 11.31

Pls provide the steps to install unzip 5.52 on HP-Ux 11.31

Regards
vijay
11 REPLIES
Pete Randall
Outstanding Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

Depends on how it's packaged. If you got it from the Porting Center ( http://hpux.connect.org.uk/hppd/hpux/Misc/unzip-5.52/ ), then you can use swinstall.


Pete

Pete

Re: Installation of unzip 5.52 on HP-Ux 11.31

Have you downloaded unzip and all 5+ of its dependencies?

Then you can swcopy all of the depots into one large one and do one swinstall.
Or you can randomly swinstall them, assuming there are no SD corequisites to enforce the dependencies.
Suraj K Sankari
Honored Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

Hi,

Download you stuff from below link.

http://hpux.connect.org.uk/hppd/hpux/Misc/unzip-5.52/

Unzip this file "unzip-5.52-ia64-11.31.depot.gz" you will get the depot file "unzip-5.52-ia64-11.31.depot" install the depot with swinstall

Suraj
Steven Schweda
Honored Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

> [...] http://hpux.connect.org.uk/hppd/hpux/Misc/unzip-5.52/ [...]

> Have you downloaded unzip and all 5+ of its
> dependencies?

I only develop the stuff, so I know nothing,
but these things mystify me:

Languages used: C C++

Build-time dependencies: bison flex gettext libiconv m4 make

Run-time dependencies: bison flex gettext libiconv m4

(Well, "C" and "make" are right.)


Also, now that UnZip 6.0 has (at long last)
been released, I'd tend to avoid 5.x. UnZip
6.0 (companion to Zip 3.0) offers large-file
support, bzip2 compression, big UID/GID
values (on UNIX(-like) systems), and a pile
of minor features and fixes. And if there's
any problem building it with either GCC or
HP's C compiler, then I'd like to hear about
it.

> Pls provide the steps to install unzip 5.52
> on HP-Ux 11.31

The source kits come with instructions:

http://www.info-zip.org/
http://www.info-zip.org/UnZip.html
http://www.info-zip.org/Zip.html
Steven E. Protter
Exalted Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

Shalom Vijay,

I've always liked to go with depot based software, as linked in prior answers.

SD/UX provides tools for keeping track of what software is installed on a system, and that is a good best practice.

The trick to working with software with the software porting and archive centre, is to deal with all of the many dependencies.

What I do is create a dependency depot, consisting of the common ones and just install that on all systems so subsequent installations work without hassle. You will see this once you click into the archive centre and carefully read the requisite requirements.

The bad part of the archive centre is many of the depots will install without dependencies, sometimes leaving the sysadmin wondering what went wrong.

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
Vijay Kumar Dosapati
Occasional Advisor

Re: Installation of unzip 5.52 on HP-Ux 11.31

Hi All

I downloaded unzip from ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tgz

Pls let me know the procedure to install.

Steven Schweda
Honored Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

> I downloaded unzip from ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tgz

I really think that you'd be happier with the
latest released version. (I know that I am.)

ftp://ftp.info-zip.org/pub/infozip/src/unzip60.tgz

Four years can make a considerable
difference. (I'm confident that the builders
work better on HP-UX now, for example.)

> Pls let me know the procedure to install.

Hmmm. Apparently we've hidden the INSTALL
file inside the kit, so if it wasn't obvious
how to unpack the thing, we're not very
helpful. (Of course, if that wasn't obvious,
then I fear that more trouble may lie ahead.)

Assuming that you have gzip and "tar", you
should be able to unpack the source kit this
way:

cd
(Put "unzip60.tgz" here.)
gzip -dc unzip60.tgz | tar xf -
cd unzip60

Reading "INSTALL" now could be helpful, but
I'd expect the following procedure to be
approximately correct.

Assuming that you have "make" and a C
compiler:

GCC:
make -f unix/Makefile generic_gcc

HP C:
make -f unix/Makefile generic

And, if that works, then probably:

make -f unix/Makefile install

If you insist on using the old version (which
is packaged a little differently), start this
way:

cd
(Put "unzip552.tgz" here.)
mkdir unzip552
cd unzip552
gzip -dc ../unzip552.tgz | tar xf -

Then I'd try:
make -f unix/Makefile generic
or:
make -f unix/Makefile generic CC=gcc

but I haven't tried building 5.52 on HP-UX
lately, so there may be some details which
I don't remember. (The Porting Centre may
explain how they built the stuff for their
depots.)

If you can get it built, a "make install"
like the one shown above for 6.0 should work
for 5.52.
Vijay Kumar Dosapati
Occasional Advisor

Re: Installation of unzip 5.52 on HP-Ux 11.31

Hi

Thanks for support.

Regards
Vijay
Steven Schweda
Honored Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

> Thanks for support.

Some future reader might be interested in
what you actually did, and if you got
satisfactory results.
Shinji Teragaito_1
Respected Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

You don't install the unzip command. You can use the jar command as follows:

% /opt/java6/bin/jar xvf basic-11.1.0.7.0-hpux-ia64.zip
Steven Schweda
Honored Contributor

Re: Installation of unzip 5.52 on HP-Ux 11.31

> You don't install the unzip command.

Perhaps _you_ don't.

> You can use the jar command as follows:
> [...]

dyi # /opt/java6/bin/jar
bash: /opt/java6/bin/jar: No such file or directory

But even if you've installed the optional
Java software, there may still be reasons
to use a real UnZip program. Large files,
for example:

dyi # time unzip6 -l /opt/ziptest/vms732x8.img.zip
Archive: /opt/ziptest/vms732x8.img.zip
Length Date Time Name
--------- ---------- ----- ----
5199986688 08-20-2009 09:31 vms732x8.img
--------- -------
5199986688 1 file

real 0m0.074s
user 0m0.000s
sys 0m0.000s


dyi # time /opt/java6/bin/jar -tvf /opt/ziptest/vms732x8.img.zip
java.util.zip.ZipException: invalid entry size (expected 4294967295 but got 9050
19392 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:376)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:148)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:92)
at sun.tools.jar.Main.list(Main.java:897)
at sun.tools.jar.Main.run(Main.java:216)
at sun.tools.jar.Main.main(Main.java:1056)

real 2m35.347s
user 2m30.170s
sys 0m2.940s


In some cases "jar" can do the job, but it
can't always replace a real UnZip program.