c89 compiler - Execute permission denied (113 Views)
Reply
Occasional Visitor
Posts: 2
Registered: ‎03-15-2010
Message 1 of 6 (113 Views)

c89 compiler - Execute permission denied

I am getting the error:

sh: ./c89: Execute permission denied.

when i try and run the c89 compiler in HPUX. I have chmoded the file to 775 and all the sub-directories that lead to the c89. I am really not sure how this can happen. Does anyone have any ideas?

Thanks
Skip Ford
Honored Contributor
Posts: 9,126
Registered: ‎02-23-2005
Message 2 of 6 (113 Views)

Re: c89 compiler - Execute permission denied

> I am getting the error:

When you do _what_, exactly?

As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions and interpretations.

> [...] HPUX. [...]

Which HP-UX, on what, exactly?

uname -a

> sh: ./c89: Execute permission denied.

"./c89"? Where are you?

pwd
ls -l ./c89
file ./c89
Acclaimed Contributor
Posts: 21,184
Registered: ‎07-06-2000
Message 3 of 6 (113 Views)

Re: c89 compiler - Execute permission denied

Hi Skip:

Do you have '/opt/aCC/bin' in your PATH?

Regards!

...JRF...
Acclaimed Contributor
Posts: 25,748
Registered: ‎03-06-2006
Message 4 of 6 (113 Views)

Re: c89 compiler - Execute permission denied

>sh: ./c89: Execute permission denied.

Why are you invoking "./c89"? You shouldn't be in that directory. And is it likely that c89 IS a directory?

>I have chmoded the file to 775 and all the sub-directories that lead to the c89.

What file and what sub-directories?
You should NOT be fiddling with /opt/aCC/.
What HP-UX version do you have? What architecture do you have? What C compiler do you have?
Honored Contributor
Posts: 1,007
Registered: ‎03-15-2009
Message 5 of 6 (113 Views)

Re: c89 compiler - Execute permission denied

Hi,

you could verify if your ANSI C compiler is all right:

# swverify C-ANSI-C

mine is located here:

# whence c89
/usr/bin/c89
# ll `whence c89`
lr-xr-xr-t 1 root sys 18 Mar 21 2006 /usr/bin/c89 -> /opt/ansic/bin/c89
# ll /opt/ansic/bin/c89
-r-xr-xr-x 1 bin bin 692224 Feb 2 2006 /opt/ansic/bin/c89
#
****
Unix operates with beer.
Occasional Visitor
Posts: 2
Registered: ‎03-15-2010
Message 6 of 6 (113 Views)

Re: c89 compiler - Execute permission denied

The actual problem was the UNIX admin did not use swinstall to install the compiler. After he did use swinstall the compiler worked great...
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.