嵌入式爱好者

ubuntu12.04 64bit安装相关库常见的问题

2017-3-22 10:39| 发布者: 飞凌-chongzi| 查看: 1270| 评论: 0

类目: I.MX6系列产品  >  Android     文档编号: 103

一、安装android相关依赖库时报错误:
Errors were encountered while processing:
 libc6-dev:i386
 
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
root@mao-virtual-machine:~# apt-get install libc6-dev:i386
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libc6-dev:i386 is already the newest version.
You might want to run 'apt-get -f install' to correct these:

The following packages have unmet dependencies:
 libc6-dev:i386 : Depends: linux-libc-dev:i386 but it is not going to be installed
                  Recommends: gcc:i386 but it is not going to be installed or
                              c-compiler:i386

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
解决方法:
:~# apt-get install linux-libc-dev:i386
:~# apt-get install libc6-dev:i386
:~# sudo apt-get install git-core gnupg flex bison gperf build-essential   zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev   libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386   libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos   python-markdown libxml2-utils xsltproc zlib1g-dev:i386
二、安装交叉编译器相关的依赖可时报错:

解决方法:

再按顺序执行以下的命令:

sudo apt-cdrom add
sudo apt-get update
sudo apt-get install build-essential

就可以搞定了。


已解决

未解决

只是看看

最新评论

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-22 09:57

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部