Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

So, I installed the Android SDK, Eclipse, and the ADT. Upon firing up Eclipse the first time after setting up the ADT, this error popped up:

[2012-05-29 12:11:06 - adb] /home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-05-29 12:11:06 - adb] 'adb version' failed!
/home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-05-29 12:11:06 - adb] Failed to parse the output of 'adb version':
Standard Output was:

Error Output was:
/home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

[2012-05-29 12:11:06 - adb] /home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-05-29 12:11:06 - adb] 'adb version' failed!
/home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-05-29 12:11:06 - adb] Failed to parse the output of 'adb version':
Standard Output was:

Error Output was:
/home/drsmith/Downloads/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I'm not quite sure how this is. Feels weird that there's a missing library there. I'm using Ubuntu 12.04. No adb is a pretty big blow as an Android developer. How do I fix?

share|improve this question
add comment

7 Answers

up vote 16 down vote accepted

Android SDK platform tools requires ia32-libs, which itself is a big package of libraries:

sudo apt-get install ia32-libs
share|improve this answer
1  
And yes, it includes libncurses as well. –  Andrejs Cainikovs May 29 '12 at 20:24
    
Can't believe I missed that. They state it in the set-up guide that's out of date and still says Eclipse isn't in the official repository. –  MowDownJoe May 29 '12 at 22:18
add comment

You need library ncurses 32 bit version installed in your system

sudo apt-get install libncurses5:i386

In addition to libncurses5, you may require libstdc++6.

sudo apt-get install libstdc++6:i386

With the command

sudo apt-get install ia32-libs

You install a lot of libraries that is not useful to solve your problem.

share|improve this answer
1  
thank you so much for de libncurses5:i386 tip. ia32-libs is not a good solution and screw my whole system –  BiAiB Sep 26 '12 at 19:51
add comment

I had the similar problem with adb. Just followed the steps shown here.

It worked for me.

share|improve this answer
    
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Peachy Aug 25 '12 at 11:34
    
dead link...... –  Konner Rasmussen Apr 19 at 2:12
add comment

If libncurses is not installed then install it and try again.

sudo apt-get install libncurses5
share|improve this answer
    
Tried apt-get install libncurses. Apt-get didn't see anything in the repository. –  MowDownJoe May 29 '12 at 21:45
    
This is probably not the problem...but did you make sure to run sudo apt-get update first? –  Eliah Kagan Jun 4 '12 at 4:58
add comment

I am running Ubuntu 13.1 and I was having the same problem. I tried adding ia32libs and it didnt recognize the repo, and recommended a couple others like lib32z1. Neither worked. Then I saw this comment,

"You need library ncurses 32 bit version installed in your system

sudo apt-get install libncurses5:i386

In addition to libncurses5, you may require libstdc++6.

sudo apt-get install libstdc++6:i386"

This worked great for me. :) Thank you, Sid.

share|improve this answer
add comment
sudo apt-get install ia32-libs

Solved my problem. This libraries collection can be useful for a lot of developer's programs also.

share|improve this answer
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.