2010-08-12 3 views
2

연락처, 다이얼러 및 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 라이브러리를 설치해야한다는 것을 알려줍니다. 불행히도, 그것이 진짜 문제인지 아닌지, 만약 그렇다면 그것을 설치하는 방법을 모른다.

+0

어떻게하면 git-core를 설치할 수 있습니까? 답안에서 같은 지시 사항을 나에게 줄 수 있니? –

답변

1

당신은 아마 당신은 여기에 편리한 설치 프로그램을 찾을 수 있습니다 OS X 용 자식을 설치하려면 : http://code.google.com/p/git-osx-installer/

만큼 자식 디렉토리가 $ PATH에 나타나는 (I가 설치 않는 경우 기억할 수없는이 나 수동으로해야 할 것입니다.), 파이썬 스크립트는 실행될 때 그것을 찾아야합니다. 또는 python 스크립트를 해킹하여 git의 정확한 위치를 알 수 있습니다.

1

당신이 https://android.googlesource.com/platform/packages/apps/Contacts를 보는 경우에, 당신은 기본 자식 명령이 단지는 것을 볼 수 있습니다 :

git clone https://android.googlesource.com/platform/packages/apps/Contacts 

당신이 연락처가 현재 디렉토리에 리포지토리 복제 그런 식으로. 그리고 네, 이걸 설치해야합니다. 플랫폼의 개별 부분에 대해 작업하고 모든 것을 체크 아웃하고 싶지 않다면, 그냥 git로 작업 할 수 있고, repo 툴을 전혀 사용할 필요가 없습니다.

관련 문제