Eclipse Android插件 - libncurses.so.5?

内容来源于 Stack Overflow,并遵循CC BY-SA 3.0许可协议进行翻译与使用

  • 回答 (2)
  • 关注 (0)
  • 查看 (125)

我在64位的Fedora 16操作系统上的Eclipse上安装ADT(Android开发工具)时遇到了很大的问题。

我首先安装了常规的Android SDK(OS级工具包)。这很顺利,我可以在工具目录中使用Android应用程序。

在Eclipse中我首先安装了GWT和Google相关工具。最后,ADT安装成功。

但是,每次打开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
提问于
用户回答回答于

运行以下命令:

yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686
用户回答回答于

这是因为Android SDK是一个32位应用程序,需要一些32位库,

我在Ubuntu 64位有相同的问题,我使用一下进行修复:

$ sudo apt-get install ia32-libs

扫码关注云+社区

领取腾讯云代金券