虚拟机编译Android 4.2 时注意的问题

来源:互联网 发布:用店铺做淘宝客 编辑:程序博客网 时间:2024/06/06 01:55

Ubuntu版本:ubuntu-10.04-desktop-amd64.iso

(1)/bin/bash: bison: command not found  解决办法:sudo apt-get install bison

(2)/bin/bash: g++: command not found   解决办法:sudo apt-get install build-essential

(2)/usr/bin/ld: cannot find -lncurses   解决办法:sudo apt-get install libncurses-dev

(2)/bin/bash: flex: command not found   解决办法:sudo apt-get install flex

(2)sh: gperf: not found   解决办法:sudo apt-get install gperf

(2)g++: error trying to exec 'cc1plus': execvp: 没有那个文件或目录     

解决办法:

这个错误是gcc和g++版本不兼容导致的,也有可能是安装完gcc没有安装g++

首先安装gcc和g++及一些依赖包
sudo apt-get install build-essential
sudo apt-get install g++
安装完成后使用 gcc -v 查看版本,然后使用g++ -v 查看版本,保证版本一致

0 0