Bhavesh Patel <[EMAIL PROTECTED]> writes:

> using gcc did seem to work, but it seems that i don't have write
> access to some of the directories.
>
> this is the response I get now:
>
> gcc -I . /var/www/cgi-bin/tmda-cgi/tmda-cgi.c -o tmda.cgi
> /var/www/cgi-bin/tmda-cgi/tmda-cgi.c:22:20: /usr/include/stdlib.h:
> Permission denied
> /var/www/cgi-bin/tmda-cgi/tmda-cgi.c:22:20: stdlib.h: Permission denied
> /var/www/cgi-bin/tmda-cgi/tmda-cgi.c:23:19: /usr/include/fcntl.h:
> Permission denied
> /var/www/cgi-bin/tmda-cgi/tmda-cgi.c:23:19: fcntl.h: Permission denied
> make: *** [tmda.cgi] Error 1

These are standard include files.  The compiler only needs to read
them, not write them.  Can you view /usr/include/stdlib.h using more
(or less)?  Or any of the files in /usr/include?  Perhaps your
administrator has set the permissions on these so no one can build C
programs....  Why that would be, I have absolutely no idea.  They
should be 0444, i.e., readable by owner/group/everyone.


Tim

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to