Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.
aneesh@nb-14:~$ adb devices
adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I would like to understand the error above and correct it. This is just one instance, I get the same error on giving any adb command! Be it push, install, etc.

Any help is appreciated!

share|improve this question
    
What distribution you are using? You might need to install the libncurses5 package, it looks like. –  Izzy Mar 9 '13 at 13:56
    
It's already installed and is the latest version. Mine is Ubuntu 12.04 64-bit os. –  Host-website-on-iPage Mar 9 '13 at 14:29
1  
So is mine, and here it works. See PasteBin for details (updated). You probably lack the 32bit support, could that be? –  Izzy Mar 9 '13 at 16:45
    
Thanks to one and all who helped! –  Host-website-on-iPage Mar 11 '13 at 13:23
add comment

2 Answers

up vote 2 down vote accepted

While dpkg --add-architecture i386 command is not needed in the current version of Ubuntu (13.10), it is required in the current Debian versions (7.x) and it will be required in the future Ubuntu versions as well. So I am going to leave it in. Just ignore it for Ubuntu 13.10.

sudo dpkg --add-architecture i386
sudo apt-get -qqy update
sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386

Update: aapt indeed requires zlib so I added it to the list. But you should not be needing any lib32 packages.

share|improve this answer
    
There's no such package in Ubuntu 13.10 –  Violet Giraffe Jan 14 at 9:49
add comment

@Izzy ,you are right.I hope this will solve the problem.

apt-get install ncurses-libs.i686 libstdc++.i686 libgcc.i686
share|improve this answer
    
There are no such packages on Ubuntu 13.10 –  Violet Giraffe Jan 14 at 9:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.