64位Ubuntu无法安装 lib32stdc++6问题
来源:互联网 发布:邮政储蓄银行软件 编辑:程序博客网 时间:2024/05/18 00:31
在Ubuntu下安装Android开发环境,一切就绪后,项目编译出现问题:
错误信息为:Cannot run program
“/home/xxxx/android/android-sdk/platform-tools/adb”: error=2,
没有那个文件或目录
原因:由于是64位的linux系统,而Android SDK只有32位的,需要安装一些支持包才能使用。安装:
sudo apt-get install lib32bz2-1.0
解决了这个问题。不过,又报了一个新的错误:编译找不到 libstdc++.so.6 文件
sudo apt-get install lib32stdc++6
继续安装lib32stdc++6, 出现问题:
Reading package lists… Done Building dependency tree Reading
state information… Done Some packages could not be installed. This
may mean that you have requested an impossible situation or if you are
using the unstable distribution that some required packages have not
yet been created or been moved out of Incoming. The following
information may help to resolve the situation:The following packages have unmet dependencies: lib32stdc++6 :
Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is
to be installed E: Unable to correct problems, you have held broken
packages.
看起来是安装依赖出现了问题,解决办法:
sudo aptitude -f install lib32stdc++6
出现第一个Y/N选项时选N,第二个及之后选Y,一路下来即可。
问题搞定!
参考:
http://stackoverflow.com/questions/31119467/ubuntu-14-04-64bit-can-not-install-lib32stdc6
- 64位Ubuntu无法安装 lib32stdc++6问题
- 64位Ubuntu无法安装 lib32stdc++6问题
- 64位Ubuntu无法安装 lib32stdc++6问题
- lib32stdc++6
- ubuntu 64位 无法安装android SDK解决办法
- 64位ubuntu无法安装 beyond compare 的解决方法
- 使用vmware无法安装64位ubuntu系统
- Ubuntu 14.04 64位 无法 安装 ia32-libs 解决办法
- Ubuntu 14.04 64位 无法 安装 ia32-libs 解决
- Ubuntu 14.04 64位 无法 安装 ia32-libs 解决办法
- 64位Ubuntu安装32位工具不过的问题
- 64位ubuntu无法安装32位软件,或者是运行32位.run等文件,出现`no such file or directory`问题
- 解决ubuntu 64位无法运行steam的问题
- Ubuntu 64位adb无法使用问题的解决
- Ubuntu 64位adb无法使用问题的解决
- 64位的ubuntu,不安装32位库,会导致无法创建android模拟器
- VMWare8无法安装64位系统的问题
- 64位debian安装androidSDK无法使用adb问题
- android textview 部分文字点击事件
- 采用共享jar包部署struts2+spring集成项目会遇到的问题
- win7-32位下php5.3.13配置连接sqlServer2008
- Android基础(网络)——Json数据解析
- iOS开发最佳实践总结
- 64位Ubuntu无法安装 lib32stdc++6问题
- 近期杂碎
- netty 解读
- C++ 版第一篇
- linux下C/C++编译时系统搜索 include 和 链接库 文件路径的指定
- Git Git命令速查 | Git命令分类 | Git常见问题
- 第二周项目1函数参数传递的三种方式
- 什么是a4j
- 关于struts2-spring整合的问题