make: execvp Permission Denied Error: 127
Error Msg
make: execvp: ./build/<PROJECT_NAME>: Permission denied
make: *** [debug] Error 127
Makefile Details
default: debug
# Rule to compile and link for use with a debugger
debug: $(SDW_OBJECT_FILES)
$(COMPILER) $(COMPILER_OPTIONS) $(DEBUG_OPTIONS) -o $(OBJECT_FILE)
$(SOURCE_FILE) $(SDL_COMPILER_FLAGS) $(SDW_COMPILER_FLAGS) $(GLM_COMPILER_FLAGS)
$(COMPILER) $(LINKER_OPTIONS) $(DEBUG_OPTIONS) -o $(EXECUTABLE) $(OBJECT_FILE)
$(SDW_LINKER_FLAGS) $(SDL_LINKER_FLAGS)
./$(EXECUTABLE)
Solution
Change Permission of File
sudo chmod -R 777 <PROJECT_NAME>
About ‘chmod’
“The chmod command is used to define or change permissioins or modes on files and l