我正嘗試從git存儲庫下載聯繫人,撥號程序和CallLog應用程序的Android源代碼。我在我的Mac上運行以下(運行SnowLeopard):
1.創建一個bin目錄和一個android目錄以放置所有下載的文件
2.將兩個目錄都添加到PATH環境變量
3.運行下面的命令來獲得回購腳本,並使其可執行:下載適用於聯繫人應用程序的Android代碼
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
4. CD的Android目錄
5.運行repo init -u https://android.googlesource.com/platform/manifest -b froyo
當我運行此命令,我收到以下錯誤:
Traceback (most recent call last):
File "/Users/xxxx/bin/repo", line 595, in <module>
main(sys.argv[1:])
File "/Users/xxxx/bin/repo", line 562, in main
_Init(args)
File "/Users/xxxx/bin/repo", line 181, in _Init
_CheckGitVersion()
File "/Users/xxxx/bin/repo", line 210, in _CheckGitVersion
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 593, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 1079, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
快速谷歌搜索告訴我需要安裝git-core庫。不幸的是,我不知道這是否是真正的問題,如果是的話,如何安裝它。
如何安裝git-core?你能給我在答案中的相同指示嗎? – 2010-08-12 06:38:58