Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Termux can't run c++ programs?

So I compiled a simple cpp program using clang++ with termux on android, but I can't run the program, I get the following error:

 $ ./execname
-bash: . /execname: Permission denied 
like image 822
RealGas Avatar asked Nov 19 '16 21:11

RealGas


Video Answer


1 Answers

Are you running on shared storage (under /sdcard)? The file system there does not support executable permissions.

Try compiling and running the file directly in the $HOME dir!

like image 162
fornwall Avatar answered Oct 25 '22 04:10

fornwall