I posted this problem on an UseNet group.
=========================================================
bash$ c++ test.c
cc1plus: /usr/local/include: Permission denied
bash$ cc test.c
/usr/ucb/cc: language optional software package not installed
bash$ g++ test.c
cc1plus: /usr/local/include: Permission denied
bash$ cat test.c
#include <stdio.h>
int main () {
printf("Test\n");
return 0;
}
bash$ echo $PATH
/usr/bin:/usr/openwin/bin:/usr/ucb:/usr/sfw/bin:/opt/sfw/bin
I'm using Solaris 10 update 6. All these are coming when I apply these
commands as regular user. Everything's ok with root user.
========================================================
They gave me perfect solution that is to applying these commands,
chmod a+r usr/local
chmod a+x usr/local
And the problem is solved. So complex problems seems to have simple
solutions!
Related Links:
http://groups.google.com/group/comp.unix.solaris/browse_thread/thread/a61d85ea678aa009?hl=en