我在使用Debian在笔记本电脑上运行Phonegap导入项目时遇到了一些麻烦。 我已经安装了Eclipse和Android的插件,一切似乎都可以正常工作,直到这里。 我已将此行添加到我的.bashrc文件中:
export PATH=${PATH}:/home/s/android-sdks/platform-tools/
我从Eclipse中的现有文件中选择新的Android项目,然后加载项目的代码。但是当我尝试执行它时,我收到此错误消息:
[2013-06-13 18:12:16 - MyProject] Android Launch!
[2013-06-13 18:12:16 - MyProject] The connection to adb is down, and a severe error has occured.
[2013-06-13 18:12:16 - MyProject] You must restart adb and Eclipse.
[2013-06-13 18:12:16 - MyProject] Please ensure that adb is correctly located at '/home/s/android-sdks/platform-tools/adb' and can be executed.
如果我尝试在终端中执行命令:adb server-start,我会收到以下消息:
adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
我错过了什么吗? ADB是对的,我的计算机上没有文件libncurses.so.5,即使我已经安装了所有32位兼容库(我的机器是64位)。
答案 0 :(得分:82)
您需要32位版本的ncurses
包,
sudo apt-get install lib32ncurses5