I'm trying to run a program which has its own directory. Termux doesn't allow creating the directory nor accessing the folder (
permission denied error) after moving it to the Termux home directory with a root file explorer app. Also with p7zip (command line port of 7-Zip) I can't create a new directory with
7z x -o <folder name> <archive name>, I can only extract to the Termux home folder.
Termux FAQ has a page for the error, but the
chmod command results in
operation not permitted. I wonder if this issue is related to the differences in Linux distributions and Android:
Why do I keep getting 'No such file or directory' when trying to execute binary (it's file exists) ?
This happens when you are executing binary compiled for Linux distribution, e.g. Ubuntu or Arch Linux. This is caused by ABI difference between GNU libc and Bionic libc.
Create a proper chroot (proot) environment and try to execute binary from it.