1835681 Members
2497 Online
110082 Solutions
New Discussion

Re: ANSIC C

 
SOLVED
Go to solution
Andrew Luis Arruza
Frequent Advisor

ANSIC C

I have installed ansic in /opt/ansic/bin when I try to execute cc I receive an error of "execute permission denied."
I have tried this as 'root' and I still receive the message.
Any ideas on executing cc.
Thanks for any/all help.
Andy
It is, after all, a matter of survival!!
4 REPLIES 4
Rick Garland
Honored Contributor

Re: ANSIC C

What are the perms?

If you go into that directory and do a ./cc does it work?

If you are compiling, are you using the full PATH to the location? Is the location in the $PATH statement?
Antoanetta Naghiu
Esteemed Contributor

Re: ANSIC C

do export PATH=$PATH:/opt/ansic/bin:/opt/ansic/lib (I'm not sure for the last one but you need the libs path as well.
Anthony Goonetilleke
Esteemed Contributor

Re: ANSIC C

Do a chmod on the bin directory
i.e

# chmod -R 555 /opt/ansic/bin
Minimum effort maximum output!
Victor BERRIDGE
Honored Contributor
Solution

Re: ANSIC C

but in /opt/ansic/tlinks
the files (C, C-TOOLS) are read-only...
and owner of the directory /opt/ansic is bin:bin
you should also have link in /usr/bin:
opt/ansic>which cc
/usr/bin/cc
lr-xr-xr-t 1 root sys 17 Oct 7 1998 /usr/bin/cc -> /opt/ansic/bin/c
c

Regards