03-15-2010 07:05 AM
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?
03-15-2010 07:22 AM
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?
> sh: ./c89: Execute permission denied.
"./c89"? Where are you?
ls -l ./c89
03-16-2010 02:36 AM
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?
03-16-2010 05:29 AM
you could verify if your ANSI C compiler is all right:
# swverify C-ANSI-C
mine is located here:
# whence 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.