1

我正在 Ubuntu 10.0.4 上构建 Android 开源项目。我尝试通过执行以下命令(从http://source.android.com/source/initializing.html复制)来安装所需的软件包,但我不能。

    sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils xsltproc

错误信息:

E: 找不到软件包 lib32ncurses5-dev

E: 找不到包 lib32readline5-dev

E: 找不到软件包 lib32z-dev

E: 找不到包 mingw32

4

3 回答 3

1

解决方案 构建 Android 操作系统所需的软件包列表错误。正确的包是:

$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib64ncurses5-dev \ x11proto-core-dev
libx11-dev lib64readline5-dev lib64z-dev \ libgl1-mesa-dev
g++-multilib tofrodos

这是Android入门教程的错误。只是想分享这个。

于 2012-10-15T10:00:04.387 回答
0

对于 14.04 新包是:

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib64ncurses5-dev x11proto-core-dev libx11-dev lib64z-dev libgl1-mesa-dev tofrodos

很少被删除。不确定是否需要更多。

于 2014-07-03T16:38:30.923 回答
0

我不确定他是否指的是 14.04,但对于 10.04 列表将是 32 位操作系统:

$  sudo apt-get install git gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev libx11-dev libreadline5-dev libz-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc
于 2017-07-06T15:05:46.647 回答