【问题标题】:How to run repo android on CentOS?如何在 CentOS 上运行 repo android?
【发布时间】:2011-10-29 11:48:58
【问题描述】:

在我的 CentOS 上安装 repo 后,我尝试使用 repo init -u https://android.googlesource.com/platform/manifest 命令运行 repo。但是,错误是这样发生的

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

有什么想法吗?

【问题讨论】:

    标签: android git centos android-source repo


    【解决方案1】:

    尝试编译并重新安装git,命令应该是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
    

    安装完成后,运行git clone https://android.googlesource.com/platform/manifest

    我刚刚克隆成功了:

    xxx@xxx:~/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.
    
    xxx@xxx:~/temp/manifest$ git remote -v
    origin  https://android.googlesource.com/platform/manifest (fetch)
    origin  https://android.googlesource.com/platform/manifest (push)
    

    【讨论】:

      猜你喜欢
      • 2019-04-17
      • 1970-01-01
      • 2016-02-12
      • 2011-07-23
      • 2012-08-14
      • 1970-01-01
      • 2014-09-05
      • 2019-07-07
      • 2013-10-02
      相关资源
      最近更新 更多