Thursday, June 21, 2012

How To: Get Android ADB working on 64-bit Linux

I recently did a clean install of Fedora 17 on to a Sun Ultra 40 Workstation to use as my development environment at work. The Android SDK requires the 32-bit versions of glibc, ncurses-libs, libstdc++, and others. On an Ubuntu based system this would be handled using ia32-libs. On Fedora however you need to be a little more specific about the individual packages. If using a 64-bit Fedora installation you'll need to run something similar to the following.
$ sudo yum install alsa-lib.i686 glibc.i686 glibc-devel.i686 ncurses-libs.i686 libstdc++.i686 libzip.i686 libX11.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686 SDL.i686 zlib.i686 zlib-devel.i686 mesa-libGL.i686
This is similar to the way in which the dependencies are downloaded on Arch Linux using the multilib and lib32 packages:
# pacman -Syu multilib-devel lib32-zlib lib32-ncurses lib32-sdl gcc gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-glibc

No comments: