Eclipse Android Plugin -- libncurses.so.5

AndroidLinuxEclipse

Android Problem Overview


I am struggling mightily with installing ADT (Android Dev Tools) on Eclipse in Fedora 16 OS, 64-bit.

Eclipse itself is running fine.

As instructed, I first installed the regular Android SDK, the OS-level toolkit. That went smoothly and I was able to use the Android app within the tools dir.

In Eclipse, it was a little more difficult because I first had to install GWT or google-related tools, which required a core Eclipse Indigo update of WST. Finally, the ADT install reported success.

However, every time when opening Eclipse, it gives me a multitude of popups regarding libncurses.so.5 and the following log:

[2012-04-04 02:06:35 - adb] /opt/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-04-04 02:06:35 - adb] 'adb version' failed!
/opt/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-04-04 02:06:35 - adb] Failed to parse the output of 'adb version':
Standard Output was:

Error Output was:
/opt/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-04-04 02:06:35 - adb] /opt/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-04-04 02:06:35 - adb] 'adb version' failed!
/opt/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-04-04 02:06:35 - adb] Failed to parse the output of 'adb version':
Standard Output was:

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

When I do try to open Android SDK Manager (under Window), the plugin does open but the window has no close button anywhere (unlike the same one at the OS-level, which also looks the same) so the only way to get out of it is to find the Eclipse PID and kill it.

Android Solutions


Solution 1 - Android

This solved the problem entirely:

yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686

Solution 2 - Android

This is happening because Android SDK is a 32bit application and require some 32bit shared libraries,

I had same issue on Ubuntu 64 bits, and fixed with:

$ sudo apt-get install ia32-libs

Solution 3 - Android

Install just libncurses5:

$ sudo apt-get install libncurses5:i386

ia32-libs will install much unnecessary libs.

Solution 4 - Android

yaourt -S multilib/lib32-ncurses

for ArchLinux

Solution 5 - Android

You probably don't have libncurses5 installed. Try

rpm --install ncurses-libs

Solution 6 - Android

had similar issue on centos:

> ./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

did the following:

yum install ncurses ncurses-devel ncurses-libs ncurses-libs.i686   ncurses-devel.i686 

And the issue fixed.

Solution 7 - Android

This tip from Tim Mattison's blog did it for me under Debian Wheezy:

sudo apt-get install lib32ncurses5 lib32stdc++6

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionamphibientView Question on Stackoverflow
Solution 1 - AndroidamphibientView Answer on Stackoverflow
Solution 2 - AndroidsourcerebelsView Answer on Stackoverflow
Solution 3 - AndroidDragonTView Answer on Stackoverflow
Solution 4 - AndroidMicrocheapfxView Answer on Stackoverflow
Solution 5 - AndroidDiego Torres MilanoView Answer on Stackoverflow
Solution 6 - AndroidSamGView Answer on Stackoverflow
Solution 7 - AndroidwedesoftView Answer on Stackoverflow