error while loading shared libraries: libncurses.so.5:

pawel picture pawel · Jun 9, 2013 · Viewed 105.8k times · Source

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

I've already tried to run

sudo ldconfig

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

What should I do?

Answer

CodeTarsier picture CodeTarsier · Jul 23, 2013

If libncurses is not installed then install it and try again. sudo apt-get install libncurses5:i386

or sudo apt-get install libncurses5 for 64 bit binaries

Also install the collection of libraries by using this command sudo apt-get install ia32-libs