Operating System - HP-UX
1835164 Members
2174 Online
110077 Solutions
New Discussion

"getting the following error while using the gnu tar"

 
SOLVED
Go to solution
Belinda Dermody
Super Advisor

"getting the following error while using the gnu tar"

sh: /usr/local/bin/tar: Execute permission denied.

I download and swinstall the tar package from the archive site.

Yes the permission of the /usr/local/bin/tar is 755.
9 REPLIES 9
steven Burgess_2
Honored Contributor
Solution

Re: "getting the following error while using the gnu tar"

Hi

Your download may be corrupt, did you ftp straight to your unix server or from your pc/workstation to your server ? did you binary ftp ?

HTH

Steve
take your time and think things through
Helen French
Honored Contributor

Re: "getting the following error while using the gnu tar"

Did you download the right version of GNU tar? The normal permission for /usr/local/bin/tar is 555 and bin:bin.

Check 'file /usr/local/bin/tar' output and see if you have the right version for your OS (11.00, 10.20)
Life is a promise, fulfill it!
Belinda Dermody
Super Advisor

Re: "getting the following error while using the gnu tar"

Download had no errors going to my PC and I shuttle the file to the HP box where binary is the default. I might try the download again
Brian Bergstrand
Honored Contributor

Re: "getting the following error while using the gnu tar"

The file may have been corrupted.

What is the output of :

file /usr/local/bin/tar

If it's not PA/Elf executable, then the file is corrupted.

HTH.
Jeff Schussele
Honored Contributor

Re: "getting the following error while using the gnu tar"

Hi James,

Simple question:

What are the perms on the dir /usr/local/bin?
Does it have execute permission?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Belinda Dermody
Super Advisor

Re: "getting the following error while using the gnu tar"

So here are all the obvious answer. I just finished downloading it again and shuttling over to my K200 box which is running 11.0 the other system was running 11i, but still getting the same permission error.



tar: ELF-32 executable object file

drwxrwxrwx 10 root bin 9216 Sep 25 15:16 bin

-rwxr-xr-x 1 root sys 420204 Jun 5 2002 tar
Jeff Schussele
Honored Contributor

Re: "getting the following error while using the gnu tar"

OK, more questions...

Did you install the dependencies - gettext & libiconv?

Also, note the following from the gtar README...

Installation hints
------------------

Here are a few hints which might help installing `tar' on some systems.

* gzip and bzip2.

GNU tar uses the gzip and bzip2 programs to read and write compressed
archives. If you don't have these programs already, you need to
install them. Their sources can be found at:

ftp://ftp.gnu.org/gnu/gzip/
http://sourceware.cygnus.com/bzip2/

So, is gzip in your search path & is it's perms set OK?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Brian Bergstrand
Honored Contributor

Re: "getting the following error while using the gnu tar"

If it's a PA 2.0 object file, it will not execute on a PA 1.0 CPU. I believe the lower K series (100, 200, 400) use PA 1.0 CPU's.

HTH.
Belinda Dermody
Super Advisor

Re: "getting the following error while using the gnu tar"

I went out to the sybase site and they had the gnu-tar binary for HP and I download that and the problem disappeared..

Thanks for all the help