You are not logged in.

#1 2012-01-21 12:12:56

darnir
Member
Registered: 2011-12-21
Posts: 47

[SOLVED]Cannot find libncurses.so.5

I recently installed the Android SDK, and was setting up Eclipse to use the SDK.
The process returns an error stating that the executable adb cannot run since:

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

Now I checked the /usr/lib folder and the libncurses.so.5 file exists there.
So I am completely lost on what the issue is, and would like some help to resolve the same.

EDIT: Using a x86-64 system, like falconidy pointed out, one needs the lib32-ncurses library for the android SDK.

Last edited by darnir (2012-01-24 01:04:08)

Offline

#2 2012-01-21 12:20:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Cannot find libncurses.so.5

Maybe Android expects it to be in another place?

Offline

#3 2012-01-21 12:36:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED]Cannot find libncurses.so.5

Doesn't it need the lib in the android /system/lib folder?

And I suspect it would need the android version of the file - which is most likely different from your arch system's lib.

Edit: in other words I'm guessing you need the curses library for android in your android file system.

Last edited by Trilby (2012-01-21 12:37:37)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2012-01-21 14:54:22

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]Cannot find libncurses.so.5

lib32-ncurses is needed, if you're using x86_64.

Offline

#5 2012-01-23 23:05:50

JollyRog3r
Member
Registered: 2012-01-22
Posts: 1

Re: [SOLVED]Cannot find libncurses.so.5

That was it for me, ty falconidy ;D

Offline

#6 2012-01-24 01:02:50

darnir
Member
Registered: 2011-12-21
Posts: 47

Re: [SOLVED]Cannot find libncurses.so.5

Worked for me too. Thanks falconidy!

Offline

#7 2016-01-15 21:24:32

Orbital_sFear
Member
Registered: 2014-10-13
Posts: 43

Re: [SOLVED]Cannot find libncurses.so.5

I apologize for the necro bump, but this exact same problem has cropped up again.

Since the update of ncurses to 6.x, the android NDK is again broken.  The SDK/NDK now works on 64bit, but its looking for libncurses.so.5.

Although its not the nices fix, running this made my SDK/NDK start working again:
sudo ln -s /usr/lib/libncursesw.so.6.0 /usr/lib/libncurses.so.5

Hope this helps someone.

Offline

#8 2016-01-15 21:31:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED]Cannot find libncurses.so.5

Orbital, your solution is a recipe for disaster.  The proper solution is clearly covered in the android page on the wiki.

Closed.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB