/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

 

目录
相关文章
|
2月前
|
移动开发 Shell Linux
百度搜索:蓝易云【Shell错误:/bin/bash^M: bad interpreter: No such file or directory】
将 `your_script.sh`替换为你的脚本文件名。运行此命令后,脚本文件的换行符将被转换为Linux格式,然后就可以在Linux系统上正常执行脚本了。
33 8
|
2月前
|
Java Shell Linux
解决 centos下执行sh文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题
解决 centos下执行sh文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题
|
6月前
|
关系型数据库 MySQL Shell
【Linux命令】-bash: mysql: command not found
【Linux命令】-bash: mysql: command not found
56 0
|
2月前
|
Linux Shell
mac/linux提示bash: telnet: command not found
mac/linux提示bash: telnet: command not found
|
4月前
|
Shell 应用服务中间件 开发工具
bash: vi: command not found
bash: vi: command not found
|
4月前
|
Unix Shell iOS开发
Shell错误:/bin/bash^M: bad interpreter: No such file or directory
Shell错误:/bin/bash^M: bad interpreter: No such file or directory
43 0
|
9月前
|
移动开发 Unix Shell
/bin/bash^M: bad interpreter: No such file or directory
/bin/bash^M: bad interpreter: No such file or directory
90 0
|
9月前
|
Shell
bash: accelerate: command not found
bash: accelerate: command not found
1556 3
|
10月前
|
Ubuntu 关系型数据库 MySQL
提示-bash: command not found的解决方法集锦
提示-bash: command not found的解决方法集锦
|
10月前
|
JavaScript Shell Linux
-bash: grunt: command not found去环境变量添加nodejs的路径
-bash: grunt: command not found去环境变量添加nodejs的路径
76 0