Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot get rid of error "/usr/bin/ld: cannot find -lncurses"

I wanted to run the command:

repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.1_r6

and got the following output:

Traceback (most recent call last): File "/home/anu/bin/repo", line 91, in <module> import readline ImportError: No module named readline

So to fix the above, I tried to install readline using commands pip install readline and easy_install readline, but both the commands outputs the following:

/usr/bin/ld: cannot find -lncurses

collect2: ld returned 1 exit status

error: command 'gcc' failed with exit status 1

I have ubuntu 12.04 with python 2.7.3 and want to build android source code.

I searched a lot to fix it but no success... Can anybody point to me what I am missing?

like image 417
beeCoder Avatar asked Dec 18 '12 02:12

beeCoder


1 Answers

sudo apt-get install libncurses5-dev

And then rerun you command

like image 177
Gloscon Solutions Avatar answered Oct 30 '22 18:10

Gloscon Solutions