Operating System - HP-UX
1748109 Members
4702 Online
108758 Solutions
New Discussion юеВ

Re: gnu tar v1.19 installation error messages

 
SOLVED
Go to solution
OldSchool
Honored Contributor

Re: gnu tar v1.19 installation error messages

you probably need to check the man page, particularly the "archive format" switches. make sure that you specify gnu format, not "oldest supported" or "posix" as those fail at 8gb as well.
OldSchool
Honored Contributor

Re: gnu tar v1.19 installation error messages

again...

gnu tar probably installed in /usr/local/bin

the original tar remains on the system in /usr/bin.

check the above locations, then run the command with the full path to the desired version of tar...

also see gnu tar man pages

note...i usually create a link called gnutar that points to gnu tar so that I don't neeed to worry about full path / default path to pick the one I want to run
OldSchool
Honored Contributor

Re: gnu tar v1.19 installation error messages

the results of "which" and the command line you provided would seem to indicate that it ran the std tar distributed with the system (/usr/bin/tar). which is why it died on the 8 gig file
Jan Shu
Regular Advisor

Re: gnu tar v1.19 installation error messages

Hi OldSchool,

It will be the "oracle" account using this gnu tar. How to create the link for "oracle" so it can run gnutar easily without using the old tar? Thanks again.

Regards,
Jan
Jan Shu
Regular Advisor

Re: gnu tar v1.19 installation error messages

Hi OldSchool,

The /usr/local/bin/tar is able to archive file with 14GB size. That is a good news. Though this was on a PA-RISC server. Now I need to install GNU TAR on an Itanium server and hopefully it will work too. Please wait for the result.

I will ask my DBA to create their own link to /usr/local/bin/tar.

Regards,
Jan
Jan Shu
Regular Advisor

Re: gnu tar v1.19 installation error messages

Hi OldSchool,

It works on Itanium server too. I should give you 10 points!!

Thanks a lot.

Jan
Steven Schweda
Honored Contributor

Re: gnu tar v1.19 installation error messages

> I will ask my DBA to create their own link
> to /usr/local/bin/tar.

There are uncounted numbers of ways to
arrange these things. You can change the
order of the directories in PATH, or you can
specify full paths for all commands, or ...

I normally do this:

dy # ln -s tar /usr/local/bin/gtar

Then, when I want the "tar" which came with
the OS, I say "tar", and when I want GNU
"tar", I say "gtar":

dy # type tar
tar is /usr/bin/tar

dy # type gtar
gtar is /usr/local/bin/gtar

dy # tar --version
tar: s: unknown option
tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[
-C directory] file] ...

dy # gtar --version
tar (GNU tar) 1.18
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.


This way, any old scripts which use "tar"
will get the "tar" which they were expecting,
I can get GNU "tar" very easily, and if I
ever install a newer version of GNU "tar"
(which I suppose I should do now), the "gtar"
link will point to the new one with no
additional effort. It works for me.
Steven Schweda
Honored Contributor

Re: gnu tar v1.19 installation error messages

> [...] (which I suppose I should do now) [...]

Or perhaps not. I got the same
strerror.c-CHAR_BIT complaint on my 11.11
system using GCC 4.2.2. I haven't looked at
it very closely, but it appears that the
"configure" test "for working strerror
function" is no good, and when that test
fails, the builders try to use a substitute
strerror() function, and that one can't be
compiled as supplied. A quick Google search
for:
gnu tar 1.19 strerror
suggests that it's broken on a bunch of other
systems, too. (And I thought that _my_
testing was sloppy.)

GNU "tar" 1.18 seemed to be a higher-quality
release. I think that I'll stick with that
one until 1.20 comes out.
James R. Ferguson
Acclaimed Contributor

Re: gnu tar v1.19 installation error messages

Hi Jan:

In addition to the manpages, you can reference:

http://www.gnu.org/software/tar/manual/tar.html

I would install the GNU version in '/usr/local/bin' and when necessary to use the GNU version reference it by absolute path, leaving simple references to 'tar' to normally find '/usr/bin/tar' or '/sbin/tar'. Remember, binaries in '/sbin' are guaranteed to reference only static (archive) libaries and thus do not require '/usr' to be mounted such as in the case of single-user mode.

Regards!

...JRF...
Jan Shu
Regular Advisor

Re: gnu tar v1.19 installation error messages

Hi All,

I appreciated your fast help to make this gnu tar 1.19 working on my HPUX 11.23 PA-RISC and Itanium servers. Here is a simple summary :

1. for PA-RISC go to http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.19/ and download
tar-1.19-hppa-11.23.depot.gz
gettext-0.17-hppa-11.23.depot.gz
libiconv-1.12-hppa-11.23.depot.gz
make-3.81-hppa-11.23.depot.gz

2. gunzip above 4 download files and you have these 4 depot files.
tar-1.19-hppa-11.23.depot
gettext-0.17-hppa-11.23.depot
libiconv-1.12-hppa-11.23.depot
make-3.81-hppa-11.23.depot

3. run SAM Software Manager Install utilities and install them in this order:
make-3.81-hppa-11.23.depot --> libiconv-1.12-hppa-11.23.depot --> gettext-0.17-hppa-11.23.depot --> tar-1.19-hppa-11.23.depot

4. create link
ln -s /usr/local/bin/tar /usr/bin/gtar

5. Example
tar -cvf afiles.tar apple angst aspic


5. For more reading:
http://www.gnu.org/software/tar/manual/tar.html for the manual.