ubuntu下安装andt出现error while loading shared libraries: libncurses.so.5: cannot open shared object file

来源:互联网 发布:ubuntu lts 升级 编辑:程序博客网 时间:2024/05/15 01:10

案例:我在ubuntu下面安装配置android开发环境的时候,当我安装完ADT重启eclipse的时候,出现如下错误:

  /home/tiger/android-sdks/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2012-07-01 08:51:35 - adb] Failed to parse the output of 'adb version':


起初以为是自己的版本问题,运行echo $MACHTYPE得到的是 x86_64-pc-linux-gnu

版本没问题,解决方法

sudo apt-get install ia32-libs

原因是你的系统是64-bit的 但是google发布的组建是32-bit的。

原文出自:http://stackoverflow.com/questions/7056914/android-eclipse-installation-on-ubuntu-11-04-aapt-and-adb-not-working-properly
原创粉丝点击