Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

c89 compiler - Execute permission denied

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