Android源码下载流程挑错(Ubuntu
2010-09-10 01:11:00 来源:WEB开发网我对linux不熟悉,说是挑错,其实也只是自己发现的不好的或者是之前作者失误的地方,现在将之公布而已。
第一个注意点:
安装repo异常
下面这些代码是官方的原句:
view plaincopy to clipboardprint?
$ curl http://android.git.kernel.org/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir working-directory-name
$ cd working-directory-name
$ repo init-u git://android.git.kernel.org/platform/manifest.git
$ curl http://android.git.kernel.org/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir working-directory-name
$ cd working-directory-name
$ repo init-u git://android.git.kernel.org/platform/manifest.git
个人执行了chmod a+x ~/bin/repo后,repo并没有真正滴可以执行,不清楚为什么。
补救办法是输入绝对路径:
view plaincopy to clipboardprint?
~/bin/repo init....
~/bin/repo init....
最后一句中, "init-u"中间必须有个空格。
第二个注意点:
执行repo时可能出现:
view plaincopy to clipboardprint?
Traceback (most recent call last):
File "/home/vanpersie/bin/repo", line 595, in
main(sys.argv[1:])
File "/home/vanpersie/bin/repo", line 562, in main
_Init(args)
File "/home/vanpersie/bin/repo", line 181, in _Init
_CheckGitVersion()
File "/home/vanpersie/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
Traceback (most recent call last):
File "/home/vanpersie/bin/repo", line 595, in
更多精彩
赞助商链接