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?
sudo apt-get install libncurses5-dev
And then rerun you command
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With