今天按照网上说的一些方法下载Android的源码时,报错,其信息如下
Traceback (most recent call last):
File "/opt/android/bin/repo", line 595, in
main(sys.argv[1:])
File "/opt/android/bin/repo", line 562, in main
_Init(args)
File "/opt/android/bin/repo", line 181, in _Init
_CheckGitVersion()
File "/opt/android/bin/repo", line 210, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
由信息中可以看出是因主python程序执行时可能配置有问题,于是根据这个疑问进行了一下搜索,后来终于让我找到,原来是因为我有些依赖库没有安装。执行
$ sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
,然后再执行
$ repo init-u git://Android.git.kernel.org/platform/manifest.git
成功完成初始化,然后再
$ python repo sync
阅读(651) | 评论(0) | 转发(0) |