I just installed the android SDK and was trying to run the emulator when this happened:
:: ~ » echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/neeraj/code/android/android-sdk-linux/tools:/home/neeraj/code/android/android-sdk-linux/platform-tools :: ~ » whereis emulator emulator: /home/neeraj/code/android/android-sdk-linux/tools/emulator :: ~ » emulator zsh: command not found: emulator
emulator
seems to be in one of the $PATH directories, but zsh still says that it wasn’t found. What could be the cause?
Advertisement
Answer
Solved it. The problem was that emulator
was a 32-bit ELF binary, and I didn’t have the 32-bit runtime libraries installed. I installed the packages libc6:i386
, zlib1g:i386
, libstdc++6:i386
and lib32z1
as suggested in this answer, and that worked.