How to run 32-bit app in Ubuntu 64-bit?
来源:互联网 发布:linux git生成ssh key 编辑:程序博客网 时间:2024/04/30 02:40
How to run 32-bit app in Ubuntu 64-bit?
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$ ./adbbash: ./adb: No such file or directory
It is there though:
thomas@thinkpad$ ls -al ./adb-rwxrwxrwx 1 thomas thomas 1231255 Jan 17 13:31 ./adbthomas@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?
4 Answers
To run a 32-bit executable file on a 64-bit multi-architecture Ubuntu system, you have to add thei386
architecture 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 updatesudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
After these steps, you should be able to run the 32-bit application:
./example32bitprogram
- How to run 32-bit app in Ubuntu 64-bit?
- How to run 32-bit app in Ubuntu 14.04 64-bit?
- how to config 64bits ubuntu to run 32bit program
- How to compile Andriod in Ubuntu 64 bit system
- How to run 32 bit .NET Windows apps on 64 bit Windows (including with IEExec)
- How to Install and Run a node.js App on Centos 6.4 64bit
- Force .NET application to run in 32bit process on 64bit OS
- How to Build and Run Android L 64-bit ARM in QEMU
- How to make CUDA 5.5 nvcc run under 64bit Ubuntu
- How to Increase the Memory Limit for 32-bit Applications in Windows 64-bit OS
- How do I run a 64-bit guest in VirtualBox?
- How to build JpegV6 in 64 bit linux
- How to tell if you’re running the 32 bit or 64 bit kernel in Mac OS X Snow Leopard
- How to compile Android 2.3 on Ubuntu 10.04 32bit
- How to compile Android 2.3 on Ubuntu 10.04 32bit
- How to compile Android 2.3 on Ubuntu 10.04 32bit
- ubuntu 64 bit cannot run adb
- Configuring IIS to Run 32-bit ASP.NET Applications on 64-bit Windows (IIS 6.0)
- DTSD79-W1型三相四线电子式多功能电能表驱动通讯
- 单点登录的技术实现机制
- 如何在报表管理平台管理目录?
- Android文字测量与绘制的两个注意点
- css3媒体查询实现网站响应式布局
- How to run 32-bit app in Ubuntu 64-bit?
- CSS控制文本自动换行
- opnet 遇到的语法错误
- mini2440_x35 ubuntu下使用dnw进行传送文件
- linux下使用gdb调试程序
- Nim语言字符串切片
- java入门练习题三
- 查找数据库对象的关联对象列表
- CSAPP——实验三 内存攻击(一)