1752805 Members
5512 Online
108789 Solutions
New Discussion юеВ

Re: gzip installation

 
SOLVED
Go to solution
WW451512
Advisor

gzip installation

Hi All,

OS: 11.23

I have to install latest version of gzip. I have downloaded it from:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gzip-1.4/

Installed the same using "swinstall -s /path/to/depot"

hputairu:/tmp/depot # swlist -l fileset | grep -i gzip
PHCO_38149.GZIP 1.0 SW-DIST.GZIP
PHCO_38149.GZIP2 1.0 SW-DIST.GZIP2
SW-DIST.GZIP B.11.23.0706.063 Gnu gzip Architecture-independent Tools
SW-DIST.GZIP2 B.11.23.0706.063 Gnu gzip Architecture-dependent Tools
# gzip 1.4 gzip <<<<<<<<<<<<<<<<
gzip.gzip-MAN
gzip.gzip-RUN

But, it still shows the older version. "swverify gzip" is good.

hputairu:/tmp/depot # gzip -V
gzip 1.3.5 (HP-UX fixlevel 1)
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT
Written by Jean-loup Gailly.

Do I need to do anything else also?
OR
How can I use the new installed verion?
2 REPLIES 2
Matti_Kurkela
Honored Contributor
Solution

Re: gzip installation

When you run "gzip -V", you are seeing the output of /usr/contrib/bin/gzip, the default version of gzip included in the OS.

The gzip 1.4 from hpux.connect.org.uk is installed as /usr/local/bin/gzip.

To use the newer version, you must either use the absolute path, e.g.:

# /usr/local/bin/gzip -V

or modify your PATH environment variable so that /usr/local/bin appears in it before /usr/contrib/bin.

(When you type a command name without an absolute path, the shell first checks if it's a shell alias or a built-in command, then goes through the directories listed in PATH trying to find the command binary. The first matching binary is used.)

In HP-UX, the system-wide default value for the PATH environment variable is defined in file /etc/PATH.

MK
MK
WW451512
Advisor

Re: gzip installation

Thanks Matti...I wish I could give you more points to clear things soo explicitly.