running an Ubuntu 14.04 x64, I like to execute an binary file. This one:
$ ls -la /opt/android-sdk-linux/tools/emulator -rwxrwxr-x 1 tho tho 35640 Nov 19 14:46 /opt/android-sdk-linux/tools/emulator If I run the executable as user tho, the following file not found error occours:
$ /opt/android-sdk-linux/tools/emulator bash: /opt/android-sdk-linux/tools/emulator: no such file or directory I tried the following commands:
$ file /opt/android-sdk-linux/tools/emulator /opt/android-sdk-linux/tools/emulator: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped readelf -l emulator returned without any errors.
ldd emulator says, that this program is not dynamically linked
$ strace /opt/android-sdk-linux/tools/emulator execve("/opt/android-sdk-linux/tools/emulator", ["/opt/android-sdk-linux/tools/emu"...], [/* 64 vars */]) = -1 ENOENT (No such file or directory) write(2, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory ) = 40 exit_group(1) = ? +++ exited with 1 +++ What could be the reason for that error?
1 Answer
You're running 64-bit Linux, but the Android SDK tools are 32-bit. At the same time, you don't have the 32-bit compatibility libraries installed on your system.
So you just need to install those:
sudo apt-get install ia32-libs 2