I need to run a configure
file into my android phone so I think the best way to do this is to use the adb shell
command.
I'm running an Android emulator onto a Windows-7 platform, and there I'm running the adb shell
command into a DOS window. Using the cd
command I'm changing to the directory where my configure
file is, and then I'm executing the following command: ./configure
. I'm getting the following error :
./configure: permission denied
So I try to run adb in root mode with adb root
-- but apparently my adb is already in root mode (Moreover I have the "#" character before each line of my adb shell).
I have also tried to use chmod
but I don't see any difference before and after executing this command (ls -la
), so maybe the problem is here (How can I run the chmod
command?).
Maybe someone here can help me with my issue, and if you have also an explanation about why I don't have the permission to run my configure
file it will be great.
Thanks.
PS: My goal here is to use the net-snmp package on an Android platform by compiling the sources of this project directly onto the platform.
/sdcard
is typically mounted with thenoexec
flag in Android, so you can't execute binaries from it. I would recommend trying to move it to somewhere else (often/data/local
is used for things like that). See if that solves the problem./usr/local/tmp
directory (the entirenet-snmp-5.7.2
directory in/sdcard
.