2011-08-18 4 views
2

내 CentOS에 리포를 설치 한 후 repo init -u https://android.googlesource.com/platform/manifest 명령으로 repo를 실행하려고합니다. 그러나이 오류는 다음과 같이 발생합니다.CentOS에서 repo android를 실행하는 방법은 무엇입니까?

File "/root/bin/repo", line 603, in 
main(sys.argv[1:]) 
File "/root/bin/repo", line 570, in main 
_Init(args) 
File "/root/bin/repo", line 184, in _Init 
_CheckGitVersion() 
File "/root/bin/repo", line 213, in _CheckGitVersion 
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) 
File "/usr/lib/python2.4/subprocess.py", line 550, in __init__ 
errread, errwrite) 
File "/usr/lib/python2.4/subprocess.py", line 996, in _execute_child 
raise child_exception 
OSError: [Errno 2] No such file or directory 

아이디어가 있습니까? 이 설치 git clone https://android.googlesource.com/platform/manifest를 실행 한 후

답변

0

컴파일에서 자식을 다시 설치 명령은 git하지 repo

yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext-devel autoconf curl curl-devel gcc 
ldconfig 

wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz 
tar zxvf git-latest.tar.gz 
cd git-<date> 
make configure 
./configure --prefix=/usr 
make 
make install 

을해야합니다.

난 그냥 성공적으로 복제했을 :

[email protected]:~/temp$ git clone https://android.googlesource.com/platform/manifest 
Cloning into manifest... 
remote: Counting objects: 261, done 
remote: Finding sources: 100% (47/47) 
remote: Total 261 (delta 41), reused 261 (delta 41) 
Receiving objects: 100% (261/261), 117.65 KiB | 56 KiB/s, done. 
Resolving deltas: 100% (41/41), done. 

[email protected]:~/temp/manifest$ git remote -v 
origin https://android.googlesource.com/platform/manifest (fetch) 
origin https://android.googlesource.com/platform/manifest (push) 
관련 문제