无法安装Ubuntu所需的软件包来构建Android开源项目

时间:2012-10-15 09:58:36

标签: android ubuntu

我在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

3 个答案:

答案 0 :(得分: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入门教程的错误。只是想分享一下。

答案 1 :(得分: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

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

答案 2 :(得分: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