Linux Eclipse Android 插件 -- libncurses.so.5

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10005907/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 05:36:40  来源:igfitidea点击:

Eclipse Android Plugin -- libncurses.so.5

androidlinuxeclipse

提问by amphibient

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

我在 Eclipse 上的 64 位 Fedora 16 操作系统上安装 ADT(Android 开发工具)非常困难。

Eclipse itself is running fine.

Eclipse 本身运行良好。

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.

按照指示,我首先安装了常规的 Android SDK,即操作系统级工具包。一切顺利,我能够在工具目录中使用 Android 应用程序。

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.

在 Eclipse 中,这有点困难,因为我首先必须安装 GWT 或 google 相关工具,这需要 WST 的核心 Eclipse Indigo 更新。最后,ADT 安装报告成功。

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

但是,每次打开 Eclipse 时,它​​都会给我大量关于 libncurses.so.5 和以下日志的弹出窗口:

[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 SDK 管理器(在 Window 下)时,该插件确实打开了,但该窗口在任何地方都没有关闭按钮(与操作系统级别的相同,看起来也相同),所以这是退出的唯一方法其中之一是找到Eclipse PID并杀死它。

采纳答案by amphibient

This solved the problem entirely:

这完全解决了问题:

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

回答by Diego Torres Milano

You probably don't have libncurses5installed. Try

你可能没有libncurses5安装。尝试

rpm --install ncurses-libs

回答by sourcerebels

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

发生这种情况是因为 Android SDK 是一个 32 位应用程序并且需要一些 32 位共享库,

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

我在 Ubuntu 64 位上遇到了同样的问题,并修复了:

$ sudo apt-get install ia32-libs

回答by Microcheapfx

yaourt -S multilib/lib32-ncurses

for ArchLinux

用于ArchLinux

回答by SamG

had similar issue on centos:

在centos上有类似的问题:

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

./adb:加载共享库时出错:libncurses.so.5:无法打开共享对象文件:没有这样的文件或目录

did the following:

做了以下事情:

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

And the issue fixed.

问题解决了。

回答by DragonT

Install just libncurses5:

只安装 libncurses5:

$ sudo apt-get install libncurses5:i386

ia32-libs will install much unnecessary libs.

ia32-libs 会安装很多不必要的库。

回答by wedesoft

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

Tim Mattison 博客中的这个提示是Debian Wheezy下为我完成的:

sudo apt-get install lib32ncurses5 lib32stdc++6