BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

c89 compiler - Execute permission denied

Occasional Visitor

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
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
Acclaimed Contributor

Re: c89 compiler - Execute permission denied

Hi Skip:

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

Regards!

...JRF...
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?
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.
Occasional Visitor

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