/bin/bash: bison: command not found

/bin/bash: bison: command not found解决方法:apt-get install bison
摘要由CSDN通过智能技术生成
/bin/bash: bison: command not found
解决方法:

android 编译源码 错误解决


  1.下载源码android-2.1_r2,直接make

  2.出错及解决如下:

  (1)/bin/bash: bison: command not found

  解决:a@ubuntu:~/work/android-2.1_r2$ sudo apt-get install bison

  (2)make: *** No rule to make target `Please-install-JDK-5.0,-update-12-or-higher,-which-you-can-download-from-java.sun.com',

  needed by `out/target/common/docs/api-stubs-timestamp'. Stop.

  解决:安装JDK 5.0

  1):根据官方文档里所说,源代码的编译必须使用JDK5才能编译的了,所以这里我们使用jdk5

  2): 需要先更新源,在终端里执行 sudo vim /etc/apt/sources.list

  3): 在source.list里把以下2行拷贝到文档最后面:

  deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse

  deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

  保存退出。

  4): 执行 sudo apt-get update 更新源.

  5): 配置编译环境并下载JDK5:sudo apt-get install sun-java5-jdk

  (3)/bin/bash: g++: command not found

  make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值