I have just installed termux
in my Android 6 phone and have given storage permissions so I can read, write or compile from the terminal in the folder /sdcard/myC/
by using clang -o birthday birthday.c -lm
. However, when I try to run the executable, I get -bash: ./birthday: Permission denied
.
I have tried compiling and running in multiple places, i.e. /sdcard/data/com.termux
, and have tried the command termux-setup-storage
that ensures the permissions are granted to read/write. I have tried to chmod
the program as well.
I should be doing something wrong because apparently, the app is really good.
noexec
flag. See e.g. this answer.