3

I am trying to use the Android SDK on Arch Linux 64bit but when I try to run ADB from the correct dirrectory it says the file does not exist, but it is there. On Ubuntu when you have this problem you install ia32-lib but there is none in Arch Linux. Is there something I have to do.

2 Answers2

4

The “no such file or directory” message is in fact referring to the loader for 32-bit executables, which is needed to execute your 32-bit executable. For a more detailed explanation, see Getting "Not found" message when running a 32-bit binary on a 64-bit system. You need to install 32-bit support on your Arch Linux.

Unfortunately, Arch Linux doesn't have a simple way of installing 32-bit support. At the moment, you need to enable the [multilib] repository by adding these lines to pacman.conf:

[multilib]
Include = /etc/pacman.d/mirrorlist

See the Arch64 FAQ and Using 32-bit-applications on Arch64 on the wiki for more details.

0

For me, with a reasonably fresh ArchLinux install (November 2015), I had to uncomment the "multilib" section in my /etc/pacman.conf as @gilles suggests.

Further, I had to use pacman to install the required packages like so:

sudo pacman -S lib32-ncurses lib32-zlib lib32-libstdc++5

After this, adb, fastboot and related development utilities like mksdcard all worked just fine on my 64-bit Intel system.