How to run 32-bit app in Ubuntu 64-bit?
2015-12-09 10:06
761 查看
How to run 32-bit app in Ubuntu 64-bit?
up vote 46 down vote favorite 23 | I installed Ubuntu 14.04 and the current Android development SDK, which contains 32-bit executables. I found that I cannot run those 32-bit binaries. Trying to start them from bash gives me an error:thomas@thinkpad$ ./adb bash: ./adb: No such file or directory It is there though: thomas@thinkpad$ ls -al ./adb -rwxrwxrwx 1 thomas thomas 1231255 Jan 17 13:31 ./adb thomas@thinkpad$ file ./adb ./adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped. Same symptom for all the other 32-bit tools in the Android SDK. In olden days one could just install 32-bit libraries on 64-bit Ubuntu to get 32-bit support, but that does not seem to work anymore. How do I run 32-bit apps on a 64-bit Ubuntu 14.04? 64-bit 32-bit
| |||
add a comment |
4 Answers
activeoldest
votes
up vote 68 down vote accepted | To run a 32-bit executable file on a 64-bit multi-architecture Ubuntu system, you have to add thei386architecture and install the three library packages libc6:i386, libncurses5:i386, and libstdc++6:i386: sudo dpkg --add-architecture i386 Or if you are using Ubuntu 12.04 LTS (Precise Pangolin) or below, use this: echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch Then: sudo apt-get update sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 After these steps, you should be able to run the 32-bit application: ./example32bitprogram |
相关文章推荐
- Android文字测量与绘制的两个注意点
- 提交AppStore遇到一个问题
- hibernate如何返回一个Map对象 以及List<Map<String, Object>>
- Android Studio 视图解析
- java微信网页授权获取用户信息以及JSSDK自定义分享等功能<五>
- Android Studio 2.0 FileOpUtils Not found
- 新书《iOS8 Swift编程指南》货架
- spring为ApplicationContext提供有三种实现
- UIWebView使用简介
- 如何本地调试微信接口
- ios 截屏操作
- Android Studio SVN配置忽略文件
- 理清apply, call的区别与联系
- ios9 label 高度自适应
- Android中使用Pull解析器读取XML文件
- Android中使用Junit测试框架
- Android中使用SharedPreferences进行数据存储及文件操作模式
- android listview/ScrollView 去除顶部下拉时的半月形阴影和上下滑动顶部和底部的虚化
- Android简单短信发送示例
- 数据绑定数据库详解Android Data Binding Library