run C executable termux Android 6 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.
Finally I got it to work. Programs can only be run if they are located at the home directory of termux. That is, run pwd to know where the home directory is and put the source files there, then compile and run, enjoy!