Operating System - HP-UX
1752510 Members
4585 Online
108788 Solutions
New Discussion юеВ

Re: c89 compiler - Execute permission denied

 
SkipFord
New Member

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
5 REPLIES 5
Steven Schweda
Honored Contributor

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
James R. Ferguson
Acclaimed Contributor

Re: c89 compiler - Execute permission denied

Hi Skip:

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

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

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?
Viktor Balogh
Honored Contributor

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.
SkipFord
New Member

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...