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?