/bin/bash: [xxxx]: command not found

简介: /******************************************************************************** * /bin/bash: [xxxx]: command not found * 说明: * 本文主要是记录android编译过程中遇到的编译错误。
/********************************************************************************
 *                   /bin/bash: [xxxx]: command not found
 * 说明:
 *     本文主要是记录android编译过程中遇到的编译错误。
 *
 *                                              2016-5-21 深圳 南山平山村 曾剑锋
 *******************************************************************************/

一、参考文章:
    1. Ubuntu搭建android编译环境总结
        http://blog.csdn.net/nxh_love/article/details/8834849

二、错误现象:
    1. error1:
        1. 错误现象:
            ......
            sses-jarjar.jar
            Copying: out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar
            Copying: out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/noproguard.classes.jar
            target Dex: ext
            Copying: out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/noproguard.classes.dex
            target Jar: ext (out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar)
             'out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.dex' as 'classes.dex'...
            Yacc: aidl <= frameworks/base/tools/aidl/aidl_language_y.y
            bison -d  -o out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y
            /bin/bash: bison: command not found
            make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Error 127
        2. 解决方法:
            zengjf@zengjf:~/myandroid$ sudo apt-get install bison
    2. error2:
        1. 错误现象:
            ......
            host C++: aidl <= frameworks/base/tools/aidl/generate_java_binder.cpp
            host C++: aidl <= frameworks/base/tools/aidl/generate_java_rpc.cpp
            host C++: aidl <= out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp
            out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp: In function 'int yyparse()':
            out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp:1948:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
            out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp:2090:35: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
            Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
            /bin/bash: flex: command not found
            make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 127
        2. 解决方法:
            zengjf@zengjf:~/myandroid$ sudo apt-get install flex

 

目录
打赏
0
0
0
0
12
分享
相关文章
Linux下JDK环境的配置及 bash: /usr/local/java/bin/java: cannot execute binary file: exec format error问题的解决
如果遇到"exec format error"问题,文章建议先检查Linux操作系统是32位还是64位,并确保安装了与系统匹配的JDK版本。如果系统是64位的,但出现了错误,可能是因为下载了错误的JDK版本。文章提供了一个链接,指向Oracle官网上的JDK 17 Linux版本下载页面,并附有截图说明。
Linux下JDK环境的配置及 bash: /usr/local/java/bin/java: cannot execute binary file: exec format error问题的解决
实时计算 Flink版操作报错合集之任务提交后出现 "cannot run program "/bin/bash": error=1, 不允许操作" ,是什么原因
在使用实时计算Flink版过程中,可能会遇到各种错误,了解这些错误的原因及解决方法对于高效排错至关重要。针对具体问题,查看Flink的日志是关键,它们通常会提供更详细的错误信息和堆栈跟踪,有助于定位问题。此外,Flink社区文档和官方论坛也是寻求帮助的好去处。以下是一些常见的操作报错及其可能的原因与解决策略。
实时计算 Flink版操作报错合集之任务提交后出现 "cannot run program "/bin/bash": error=1, 不允许操作" ,是什么原因
Anaconda安装后报错 -bash: conda: command not found 如何处理
【6月更文挑战第26天】Anaconda安装后报错 -bash: conda: command not found 如何处理
1899 4
Anaconda安装后报错 -bash: conda: command not found 如何处理
【6月更文挑战第20天】Anaconda安装后报错 -bash: conda: command not found 如何处理
481 0
Anaconda安装后报错 -bash: conda: command not found 如何处理
【6月更文挑战第17天】Anaconda安装后报错 -bash: conda: command not found 如何处理
395 4
进入mysql报错:bash:/bin/mysql:没有那个文件或目录
进入mysql报错:bash:/bin/mysql:没有那个文件或目录
386 4
|
10月前
|
重装yum |-bash: yum: command not found
重装yum |-bash: yum: command not found
843 0
解决 centos下执行sh文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题
解决 centos下执行sh文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题
1210 0
Linux|创建和使用 Bash 别名
Linux|创建和使用 Bash 别名
84 6
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等