연락처, 다이얼러 및 CallLog 애플리케이션 용 Android 소스 코드를 git 저장소에서 다운로드하려고합니다. 나는 내 맥 (SnowLeopard를 실행)에서 다음을 시도했다 :
1. 다운로드 한 모든 파일을 넣기 위해 bin 디렉토리와 android 디렉토리를 만든다.
2. PATH 환경 변수에 두 디렉토리를 추가했다.
3. 실행 다음 명령은 REPO 스크립트를 얻을하고 실행 만들려면 :연락처 애플리케이션 용 Android 코드 다운로드
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
4. CD의 안드로이드 디렉토리
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
빠른 Google 검색은 git-core 라이브러리를 설치해야한다는 것을 알려줍니다. 불행히도, 그것이 진짜 문제인지 아닌지, 만약 그렇다면 그것을 설치하는 방법을 모른다.
어떻게하면 git-core를 설치할 수 있습니까? 답안에서 같은 지시 사항을 나에게 줄 수 있니? –