64位Ubuntu无法安装 lib32stdc++6问题
2015-11-13 22:39
459 查看
在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
错误信息为: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
相关文章推荐
- Strchr()函数详解
- dancing links解决X问题的C++实现
- JAVA C# C/C++之比较学:初始化顺序
- C++模板元编程 - 挖新坑的时候探索到了模板元编程的新玩法
- C++11新特性
- C++学习第二课
- C++常见面试题
- C++ 构造过程和析构过程
- 成员函数后面加const,没有const,以及使用的区别
- C语言字符串操作函数
- C++类的多继承
- C++命名准则
- 关于C++中子类调用父类方法的一个问题
- C++中this指针的用法详解
- 开始使用C++11的几个理由
- 开始使用C++11的几个理由
- C++报错:_BLOCK_TYPE_IS_VALD(pHead->nBlockUse)
- c++中的const
- C---仓储管理系统实现(嵌套链表or二维链表)
- c++ new new[]和 delete delete[] 问题