简体   繁体   English

正确的是,适用于64位的android sdk的可执行文件显示了一些有关32位的信息吗?

[英]Is it right that android sdk for 64-bit has it's executable file shows some info about 32-bit?

I am working on a 64-bit linux system(it's ubuntu), and downloaded a ADT Bundle for 64bit linux, but when I use some tools under the sdk folder, the bash report some error like 我正在使用64位linux系统(它是ubuntu),并下载了适用于64位linux的ADT捆绑包,但是当我在sdk文件夹下使用某些工具时,bash报告一些错误,例如

bash: ./emulator: No such file or directory

What can cause error like this, I am aware the file is just there.some infomation I can get are showed below: 是什么会导致这样的错误,我知道文件就在那里。我可以得到的一些信息如下所示:

$ 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

Or there is something wrong about the ADT Bundle? 还是ADT套件有问题?

PS: I downloaded the 64bit version, so I think there tools should can be used without configure, isn't it? PS:我下载了64位版本,因此我认为应该无需配置即可使用工具,不是吗?

You'll have to install some 32 bit libraries as well. 您还必须安装一些32位库。 Try ldd emulator , this should tell you which libraries can be resolved and which can't. 尝试使用ldd emulator ,它应该告诉您哪些库可以解析,哪些不能解析。 The 'no such file or directory' when executing a file that's obviously there results from a library that can't be resolved. 当执行一个显然存在的文件时,“没有这样的文件或目录”来自无法解析的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM