Operating System - HP-UX
1755036 Members
2795 Online
108828 Solutions
New Discussion юеВ

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

 
SOLVED
Go to solution
wittie
Frequent Advisor

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

On a HP-UX 11.11 box, I wanted to update my gzip version. 1.3.5 was installed into /usr/contrib/bin. I installed 1.3.12 version into /usr/local/bin. After linking

# ln -f /usr/local/bin/gzip /usr/contrib/bin/gzip

now I'm receiving

# gzip -V
sh: gzip: Execute permission denied.

Permissions were the same as on another system, where gzip works:

# ll /usr/local/bin/gzip
-rwxr-xr-x 1 root sys 94208 Apr 16 2007 /usr/local/bin/gzip

I chowned to bin:bin, but it still gives the error.

/usr/local/bin is exported as PATH variable.

I am root.

Any idea how to run gzip ?

# /usr/local/bin/gzip -V
sh: /usr/local/bin/gzip: Execute permission denied.

# /usr/contrib/bin/gzip -V
sh: /usr/contrib/bin/gzip: Execute permission denied.

11 REPLIES 11
Luk Vandenbussche
Honored Contributor

Re: sh: /usr/local/bin/gzip: Execute permission denied.

Probably something went wrong during the installation.

Install gzip from depot.

You can download it in depot format here

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gzip-1.3.12/
Ivan Krastev
Honored Contributor

Re: sh: /usr/local/bin/gzip: Execute permission denied.

Can you post the output of:

file /usr/local/bin/gzip

Maybe this is PA 2.0 binary ?

regards,
ivan
wittie
Frequent Advisor

Re: sh: /usr/local/bin/gzip: Execute permission denied.

Luk, i downloaded it exactly from the link you mentioned and it is the depot file i've installed.

Krastev, yes it's a PA 2.0

# file /usr/local/bin/gzip
/usr/local/bin/gzip: PA-RISC2.0 shared executable dynamically linked
wittie
Frequent Advisor

Re: sh: /usr/local/bin/gzip: Execute permission denied.

so so so, if i switch to shell ksh, i got a more reasonable error:

# gzip -V
ksh: /usr/contrib/bin/gzip: Executable file incompatible with hardware

# model
9000/778/B180L

And what for gzip version do i need for a B180L machine?
whiteknight
Honored Contributor

Re: sh: /usr/local/bin/gzip: Execute permission denied.


Wittie

B180L workstation is a supported on 32bit OS, so, PA 2.0 is not supported. please locate PA 1.1 shared library.


Hope this help.


WK
Problem never ends, you must know how to fix it
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: sh: /usr/local/bin/gzip: Execute permission denied.

The B180 uses a PA-7300 processor and thus cannot use a PA-RISC 2.0 instruction set. While the code may be 32-bit the instruction set is a superset of the instructions that your CPU understands. You are going to have to download the source from the Porting Centre and build a PA-RISC 1.1 version yourself.

If you are using one of the HP compilers then you should use the +DAportable compiler directive.
If it ain't broke, I can fix that.
wittie
Frequent Advisor

Re: sh: /usr/local/bin/gzip: Execute permission denied.

Who said it's gonna be easy ...

Well, i have to give it a try. Thanks guys for the info.
Dennis Handly
Acclaimed Contributor

Re: sh: /usr/local/bin/gzip: Execute permission denied.

You have destroyed HP's version of gzip in /usr/contrib/bin/gzip so you better put it back before you run into tools that need it.
wittie
Frequent Advisor

Re: sh: /usr/local/bin/gzip: Execute permission denied.

sorry Dennis, but HP's version of gzip is "destroyed" by default ... :)