加载共享库时出错:libncurses.so.5: [英] error while loading shared libraries: libncurses.so.5:

查看:1202
本文介绍了加载共享库时出错:libncurses.so.5:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Android Studio,并尝试在其中运行我的第一个项目,但出现以下错误:

I've installed Android Studio and tried to run my first project in it, and I've got following error:

Error Output was: /home/user/android-studio/sdk/platform-tools/adb: error while loading       shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

我已经尝试跑步

sudo ldconfig

但是没有帮助.我最近安装了libncurses(在使用android studio之前).

but it doesnt help. I've recently installed libncurses (before using android studio).

我该怎么办?

推荐答案

如果您完全确定已安装libncurses(又名ncurses),就像您成功完成了库的"ls"操作一样,那么也许您是如果运行的程序(adb)是32位,则运行64位Linux操作系统并且仅安装了64位libncurses.

If you are absolutely sure that libncurses, aka ncurses, is installed, as in you've done a successful 'ls' of the library, then perhaps you are running a 64 bit Linux operating system and only have the 64 bit libncurses installed, when the program that is running (adb) is 32 bit.

如果是这样,则32位程序无法链接到64位库(也不会找到它),因此您可能必须安装libcurses或ncurses(32位版本).同样,如果您运行的是64位adb,则您的ncurses可能是32位(一种可能但不太可能的情况).

If so, a 32 bit program can't link to a 64 bit library (and won't located it anyway), so you might have to install libcurses, or ncurses (32 bit version). Likewise, if you are running a 64 bit adb, perhaps your ncurses is 32 bit (a possible but less likely scenario).

这篇关于加载共享库时出错:libncurses.so.5:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆