The original command curl http://android.git.kernel.org/repo> ~ / repo can not be used
The following command will always play out overtime
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~ / bin / repo
So in the end go down ah
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Try removing s
Reply:
Until now there has not, the heroes who have the means to ah
Reply:
Is not to be harmonious ah?
Reply:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo> repo
Reply:
Can refer
http://www.cnblogs.com/dwayne/archive/2011 / 11/16/2250732.html
Reply:
Not ah
It is also connected to the same
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~ / bin / repo
S also tried to remove
All overtime
I was ubuntu
vmware virtual machine installed with theIt should not affect it.
Reply:
Try this curl http://git-repo.googlecode.com/files/repo-1.14> repo
Reply:
No effect, I used not affected last year, and this year is not clear
https://dl-ssl.google.com/dl/googlesource/git-repo/repo> repo
Reply:
We can not stop
harmonious discordIf the connection timeout, what version of the source code, there are a lot of my colleagues shared network drive
Reply:
Document Description:
The document consists of an article on the network from the practice + finishing. Original address: http://hi.baidu.com/j_key/item/170505ad9efd0037030a4d5d
Fact:
In fact, sometimes can not find the google servers we download the code from another service only.
android whole project is composed of many sub-projects. Git code on the server. Download the source code in order to facilitate google wrote a Python script called repo.
Originally we follow the download instructions provided by google official website can be downloaded, but unfortunately in the magical kingdom of heaven comparison, so we are always linked more often than the URL. Less than google link source server how to do? Imagine if all the android source code copy to the address we have in this country have access to it. So there are the following way:
Download the code spread to others on the domestic network disk or server
Some android code or the entire project will be a mirror image. Provides a similar way to download and google, just what needs to be done to change the address. (We say that, in fact, change the address only.) Http://www.jerry-zhang.com/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif
So download the android source code on the following sub-steps:
First, download the configuration environment
Download android source code needs to look at the environment: linux, curl, python, git-core
Here we create two directories in the home path
android_souce_code: This directory is used to store the android source code
$ Cd ~
$ Mkdir android_souce_code
bin: This directory on the repo tool
$ Mkdir bin
The ~ / bin path to join environment command
$ PATH = ~ / bin: $ PATH
linux:
Ubuntu is recommended because the code at compile time, android official recommended the use of Ubuntu. If the windows you can use cygwin tools, install and use cygwin is relatively simple.
The installation
curl and gitcurl: used to obtain
repo scriptgit-core: repo actually added a batch
gitUbuntu installation using the command:
$ Sudo apt-get install git-core curl
Second, get repo scripting tool, set the environment variable
Description: In fact, the purpose of the tool is to curl the repo downloaded. Then you can download directly from the network, but the address to find security. You can directly access https://dl-ssl.google.com/dl/googlesource/git-repo/repo download repo. Downloaded to ~ / bin directory.
However, using curl to get repo tool safer
Command:
$ Curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~ / bin / repo
Download repo process you may encounter the following tragedies:
Many are on the Internet or books written like this:
curl http://android.git.kernel.org/repo> ~ / bin / repo
The results obtained repo can not be used, what a 301 redirect, alas! Sad reminder ah! Later on csdn made a post, Daniel to solve it!
http://code.google.com/p/git-repo/downloads/detail?name=repo-1.12 this link to download a repo!
Can also be obtained through the following command:
curl http://git-repo.googlecode.com/files/repo-1.12> ~ / bin / repo
Modify execute permissions
$ Chmod a + x ~ / bin / repo
Third, initialize the repo tool to get and set information
download the source code for each subprojectEditing repo tool, modify ~ / bin / repo file the fifth row
REPO_URL = 'https://code.google.com/p/git-repo/'
To
REPO_URL = 'http://code.google.com/p/git-repo/'
Go to the next android_souce_code directory
cd android_souce_code
After modifying execution (this command to download the android-2.3.4 source code):
$ ~ / Bin / repo init-u git :/ / Android.git.linaro.org / platform / manifest.git-b android-2.3.4_r1
Here-b is used to define the version you need to download the android code execution if a direct
$ ~ / Bin / repo init-u git :/ / Android.git.linaro.org / platform / manifest.git
Download the latest android souce code.
If you need to download the android 2.2 source code, enter the command:
$ ~ / Bin / repo init-u git :/ / Android.git.linaro.org / platform / manifest.git-b froyo
Takes a minute to execute after this command is executed.
If you do not change, you may again tragedy:
This step is prone to error, ah, brother died here a long time ah! Many books or websites are like this command:
~ / Bin / repo init-u git :/ / android.git.kernel.org / platform / manifest.git
After the execution, such as n long, so that the results of your results appear overjoyed ah
error: Failed connect to code.google.com: 443; Operation now in progress while accessing https://code.google.com/p/git-repo//info/refs
Fourth, modify the configuration file to download
Find android_souce_code directory. Repo below manifest.xml file, which is hidden files ls-a to see
cd. repo
Modify manifest.xml file
Will fetch = "git :/ / Android.git.kernel.org /"
To
fetch = "git :/ / Android.git.linaro.org /"
Fifth, execute the command, wait
Execute: $ repo sync
This process takes several hours longer.
No comments:
Post a Comment