Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bash cannot find adb even though it's definitely there

Tags:

linux

android

adb

I'm running ArchLinux, kernel 3.4.4, bash version 4.2.29. I downloaded the android sdk from here: http://developer.android.com/sdk/index.html

Once extracted I did, did ~/android-sdk-linux/tools/android and installed the SDK platform tools package.

From there I tried the following:

> ls -l ~/android-sdk-linux/platform-tools/adb 
-rwxr-xr-x 1 mediocregopher mediocregopher 204436 Jun 28 13:20 /home/mediocregopher/android-sdk-linux/platform-tools/adb

> file ~/android-sdk-linux/platform-tools/adb 
/home/mediocregopher/android-sdk-linux/platform-tools/adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped

> ~/android-sdk-linux/platform-tools/adb 
bash: /home/mediocregopher/android-sdk-linux/platform-tools/adb: No such file or directory

Clearly the file is there and at the very least executable, why can't bash seem to find it? I've tried adding the platform-tools folder to my path as well as sudo and su-ing, but no matter what it seems like the file is not found. Does anyone know what could be happening?

like image 610
Mediocre Gopher Avatar asked Jun 28 '12 17:06

Mediocre Gopher


1 Answers

You're running on a 64bit system and you do not have the 32bit compatibility libraries installed.

The error is actually coming from the fact that it can't find the 32bit ld.so.

If you're using ubuntu/debian, I think you just need to sudo apt-get install ia32-libs and it should work.

like image 55
Petesh Avatar answered Oct 16 '22 07:10

Petesh