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

时间:2022-01-27 15:30:11

I'm having some trouble running a Phonegap imported project on my laptop with Debian. I have already installed Eclipse and the plug-in for Android and everything seems to work fine until here. I have added this line to my .bashrc file:

我在使用Debian在我的笔记本电脑上运行Phonegap导入项目时遇到了一些麻烦。我已经安装了Eclipse和Android的插件,一切似乎都可以正常工作,直到这里。我已将此行添加到我的.bashrc文件中:

   export PATH=${PATH}:/home/s/android-sdks/platform-tools/

I choose new Android project from existing file, in Eclipse, and then I load the code of the project. But when I try to execute it, I get this error message:

我从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.

If I try to execute the command: adb server-start in the terminal, I get this message:

如果我尝试在终端中执行命令:adb server-start,我会收到以下消息:

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

Did I miss something? ADB is right, I do not have the file libncurses.so.5 anywhere on my computer even though I have already installed all the 32-bit compatible libraries (my machine is 64-bit).

我错过了什么? ADB是对的,我的计算机上没有文件libncurses.so.5,即使我已经安装了所有32位兼容库(我的机器是64位)。

1 个解决方案

#1


82  

You need the 32bits version of ncurses package,

你需要32位版本的ncurses包,

sudo apt-get install lib32ncurses5

#1


82  

You need the 32bits version of ncurses package,

你需要32位版本的ncurses包,

sudo apt-get install lib32ncurses5