主题 : bison: command not found (was: android源码编译问题) 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 97451
精华: 0
发帖: 20
金钱: 100 两
威望: 20 点
贡献值: 0 点
综合积分: 40 分
注册时间: 2013-10-23
最后登录: 2014-11-18
楼主  发表于: 2013-12-20 15:59

 bison: command not found (was: android源码编译问题)

图片:
我在编译android源码时出来问题,打印信息如下
请问是我编译环境美配置好,还是?
[ 此帖被kasim在2013-12-23 18:33重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-12-20 16:37
看起来是没有安装 bison, 如果你用 ubuntu或者debian, 可以用命令sudo apt-get install bison来安装。关于Android编译环境的设置,参考http://source.android.com/source/initializing.html
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 97451
精华: 0
发帖: 20
金钱: 100 两
威望: 20 点
贡献值: 0 点
综合积分: 40 分
注册时间: 2013-10-23
最后登录: 2014-11-18
2楼  发表于: 2013-12-23 14:00

 回 1楼(kasim) 的帖子

图片:
你好,按照你给的网页配置了下编译环境,还是出现错误了,请帮忙看下这是什么问题?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2013-12-23 18:33

 回 2楼(putin168) 的帖子

请遵守一个帖子一个问题的原则,对于新的问题另外发一个帖子,谢谢!
另外,提问题的时候,说明你的步骤。错误信息最好不要用截图的方式,不方便别人引用。可以在编译的命令后面加上"2>&1 |tee build.log"来记录编译错误,编译停止之后把当前目录下生成的build.log附上来。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."