android - 64 位的 android sdk 是否有它的可执行文件显示一些关于 32 位的信息?

标签 android linux bash

我在 64 位 linux 系统上工作(它是 ubuntu),并下载了 64 位 linux 的 ADT Bundle,但是当我使用 sdk 文件夹下的一些工具时,bash 报告一些错误,如

bash: ./emulator: No such file or directory

什么会导致这样的错误,我知道文件就在那里。我可以获得的一些信息如下所示:

$ uname -a
Linux zhch-DX4840 3.8.0-34-generic #49-Ubuntu SMP Tue Nov 12 18:00:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

$ pwd
/home/zhch/software/adt-bundle-linux-x86_64-20131030/sdk/tools
# the path indicates that I downloaded a 64bit version, I downloaded it from http://developer.android.com/sdk/index.html

$ ls ./emulator
./emulator
$ ./emulator
bash: ./emulator: No such file or directory
$ file emulator
emulator: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped

还是 ADT Bundle 有问题?

PS:我下载的是64bit的版本,所以我觉得应该有工具不用configure就可以用吧?

最佳答案

您还必须安装一些 32 位库。试试 ldd emulator,这应该会告诉您哪些库可以解析,哪些不能。执行明显存在的文件时“没有这样的文件或目录”是由无法解析的库引起的。

关于android - 64 位的 android sdk 是否有它的可执行文件显示一些关于 32 位的信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20812291/

相关文章:

Android:强制关闭应用程序类中的应用程序

linux - 在 Linux 服务器上安装 xcode 命令行工具(通过 pkg 文件)

python - ipython是否有 "set -e"等价物

linux - G++ 总是因对 _Unwind_GetIPInfo 的 undefined reference 而失败

linux - 从文件系统中查找路由器固件的 linux 内核版本

bash - 使用 Control C 防止 shell 脚本退出

linux - 如何在 bash 脚本中递归地执行 foreach *.mp3 文件?

android - 我的 robofragment 无法注入(inject) View (roboguice 2.0)

android - 如何以编程方式从 Android 读取 SIM SENT SMS 消息?

java - 从不同的 Activity 中获取相机后,是否有任何方法可以从不同的 Activity 中释放相机。?