I cannot execute any files that I have already created nor new ones. I keep receiving the message of "Permission Denied". Has anyone run into this problem/can some one help?
2 Answers
You wrongly named your file, before issuing make
command with your file you named practice
, rename it to practice.c
then compile and run it. Here are the steps you need to follow
rename the file using the command
mv practice practice.c
compile your program by issuing the command
make practice
finally run it by issuing the command
./practice
in case it compiled without errors.
Try executing the following command in the terminal to change the permissions for filename
chmod 700 filename
-
Solved that problem! Thank you!– user10152Nov 9, 2015 at 20:00
practice
file created? There doesn't seem to be any source code for it which is whymake
cannot do anything. What happens when you runmake hello
followed by./hello
?