简体   繁体   English

无法通过Android终端运行.out文件

[英]Impossible to run a.out file through Android terminal

I compiled and linked a file on Android (ARM). 我在Android(ARM)上编译并链接了一个文件。 I have got a a.out file and iwant to execute it on Android (ARM) using android terminal via the command (./). 我有一个a.out文件,我想通过命令(./)使用android终端在Android(ARM)上执行它。 It's written "operation not permitted". 它写为“不允许操作”。 I even try "chmod" but it's the same thing. 我什至尝试使用“ chmod”,但这是同一回事。 How can I fix it? 我该如何解决?

I have found it. 我找到了 The problem is that we can not execute .out file on Android sdcard. 问题是我们无法在Android SD卡上执行.out文件。 So, as i am using an Android terminal emulator called Termux, i copied the a.out file in the Termux home directory or a subdirectory called "Storage" via the command line "cp". 因此,当我使用名为Termux的Android终端模拟器时,我通过命令行“ cp”将a.out文件复制到Termux主目录或名为“ Storage”的子目录中。 In these two directories, i successfully execute the a.out file. 在这两个目录中,我成功执行了a.out文件。 On Sdcard, "a.out" file only have "read" and "write" properties, not, "execute". 在Sdcard上,“ a.out”文件仅具有“读取”和“写入”属性,而没有“执行”属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM