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

/********************************************************************************
 *                   /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. 解决方法:
            [email protected]:~/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. 解决方法:
            [email protected]:~/myandroid$ sudo apt-get install flex
时间: 2024-10-07 16:23:09

/bin/bash: [xxxx]: command not found的相关文章

/bin/bash: jar: command not found(转载)

转自:http://blog.csdn.net/zhangdaiscott/article/details/23138023 /bin/bash: jar: command not found 解决办法: cd /usr/bin 必须先进入/usr/bin,下同 sudo ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/jar 我的jdk是安装在/usr/lib/jvm/jdk1.6.0_30/目录下的 如果提示javah:commond not found,于是照葫

-bash: yarn: command not found/-bash: cnpm: command not found

-bash: cnpm: command not found-bash: yarn: command not found-bash: xxxx: command not found如上yarn/cnpm皆通用,前提是安装成功后报这个错误哈! Error: EACCES: permission denied, mkdir 错误的同学请移步这篇文章 ??https://www.cnblogs.com/niceyoo/p/11703560.html 不同于Windows,我们使用了 sudo npm

linux突然所有命令都失效了,显示bash: xxxxx: command not found...

昨天因为用虚拟机调试程序,然后下班时不正常关机,今天突然打开linux系统使用时,无论输入任何命令都显示bash: xxxx: command not found...,比如cd  显示bash: cd : command not found...  比如ls,显示bash: ls: command not found....再比如hadoop fs -ls /robot  bash: hadoop: command not found...,所以无论是自己安装的软件,还是系统自带的软件命令都不

-bash: php: command not found 命令找不到

Linux命令找不到?(找不到命令) 这个问题其实很简单,如果你在终端输入一个命令,而系统提示你说命令没有找到(Command not found)的话,要么是因为你没有装相应的软件包,要么就是因为路径设置的问题.如果是因为软件包的问题,那没有别的好说的,安装相应的软件包就好了.而另外一种情况,则需要对用户的路径进行设置. -bash: ls: command not found 或者 -bash: ll: command not found原因:在设置环境变量时,编辑profile文件没有写正

Linux bash: scp: command not found的问题记录

1,scp报错 [[email protected] soft]# scpjdk-7u55-linux-x64.tar.gz 192.168.121.246:/soft/ [email protected]'s password: bash: scp: command not found lost connection [[email protected] soft]# 2,调试-v [[email protected] soft]# scp -vjdk-7u55-linux-x64.tar.g

Linux 下 -bash: mysql: command not found解决办法

-bash: mysql: command not found 1.vim ~/.bash_profile 最下面写 export PATH=$PATH:/usr/local/mysql/bin(你的安装bin目录) :wq 保存退出 2.source ~/.bash_profile 然后就直接可以实现了 给分吧 亲自试验过 3. >>mysql  -uroot -p >>输入密码

解决bash: mysql: command not found 的方法

[email protected] ~]# mysql -u root-bash: mysql: command not found 原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件.首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径是:/usr/local/mysql/bin/mysql,我们则可以这样执行命令: # ln -s /us

Linux下bash: scp: command not found问题 或者装ssh包时报错 Requires: libedit.so.0()(64bit)

    一.用scp命令从物理主机向CentOS 6.1虚拟机传送文件,提示以下错误:bash: scp: command not found到CentOS 6.1虚拟机查看也缺少scp命令.该虚拟机是同事安装的,还有其他命令也不完整,可能不是完整安装,缺了些包. 二.用以下方法解决: 1.在一台完整的CentOS 5.8查找scp所在的包:# which scp/usr/bin/scp# rpm -qf /usr/bin/scpopenssh-clients-4.3p2-82.el5 2.查出

centos下bash: XXX: command not found的解决方法

最近想在centos下做Android项目构建,配置好jdk和Android sdk后,同时也在/etc/profile将java和Android的环境变量配置进去,但是却无法像windows 下一样,直接使用android update project命令. 出现情况如下:bash: android: command not found 此时,我们可以使用ln命令将android 添加到/usr/bin目录下,详细解决方法如下: 1.使用cd /usr/bin 进入到该目录 2.使用ln -s