Android SDK tools on x86_64

Updated

I ran into a issue when installing Android SDK tools to my new work machine running Fedora 18 x86_64. I first noticed the issue when I tried to run the emulator from Eclipse, it just wouldn’t start. The cryptic error message told me that it couldn’t find the emulator executable, which actually was available at the location it was trying to access. I switched to the console I tried to start the emulator by hand and then I got this message:

emulator: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Then I understood that the emulator executable is built for the 32-bit architecture and it’s trying to find the corresponding libraries, libraries that weren’t available on my x86_64 machine. So the fix was quite easy, I needed to install the i686 versions of the required libraries. On Fedora 18 it meant that to get Android SDK working I needed to install the following packages with yum:

yum install glibc.i686 ncurses-libs.i686 libstdc++.i686 zlib.i686

After that everything works as expected.