Monday, January 11, 2016

Use cygwin download android source of the problem




            


Today saw online and the instructions to install the cygwin to download android source has encountered a problem, is not down repo scripting tool download.
Try the following addresses are Timeout:
http://android.git.kernel.org/repo
http://code.google.com/p/git-repo/downloads/detail?name=repo-1.12
http://git-repo.googlecode.com/files/repo-1.12
Also addresses official website provides

I tried http://code.google.com/p/git-repo/downloads/detail?name=repo-1.12
When the browser can be downloaded at the tools downloaded from the repo-1.12 17K in size.
But using curl to download, nearly 10 times the test is the connection timeout (say because the connection was not very good so tried many times).

After opening script file attempts to create a repo, the contents written in, do not download, but encountered another problem with vim new file is read-only, you can not write, really depressed.

That being the case, they think there is a LOG directory cygwin directory, which has a LOG file, try to modify the contents of this file as the content repo-1.12, the name change, but into cygwin found the file or the original content. Although you can see the content was changed under the windows.

There are three issues that need you to help me answer:
1. Why not use curl to download repo tool?
2. Why in the cygwin new file with vim, but the default is read-only file?
(Because it is a read-only file so I can not write content, you can not write the content will not be new.)
3. Is there any way can the windows file downloaded directly into the cygwin accessible directory?
Reply:
Top about themselves. Wang answered.
Reply:
1. Why not use curl to download repo tool?
=== Only used virtual machine download, this is not clear, but in the heavenly visit google normal server problems, to get used to
2. Why in the cygwin new file with vim, but the default is read-only file?
(Because it is a read-only file so I can not write content, you can not write the content will not be new.)
=== I tried seemingly is the current user can read and write, read-only to other users, try using chmod 666 XXX modify
3. What has the file download method can under the windows, directly into the cygwin directory accessible?
=== In sygwin direct access to the windows directory ah, such as looking for D: \ test.txt:
$ Cd D:
$ Vim test.txt

LZ want to help. . .
Reply:
3. What has the file download method can under the windows, directly into the cygwin directory accessible?
=== In sygwin direct access to the windows directory ah, such as looking for D: \ test.txt:
-----------------------------------
Thank yuleyouxi, I will direct repo After downloading copy later, you can use (just: http request failed). 30 points for you.

1 and 2, but I still want to know why. I did not know it was pointing.
Reply:
quote 3rd floor UP5 reply:
1 and 2, but I still want to know why. I did not know it was pointing.


1. Why not use curl to download repo tool?
You are doing it in accordance with the official line?

$ Mkdir ~ / bin // path can be amended$ PATH = ~ / bin: $ PATH // added to the environment variable
$ Curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo & gt; ~ / bin / repo
// You can try to use http: curl http://dl-ssl.google.com/dl/googlesource/git-repo/repo & gt; ~ / bin / repo
$ Chmod a + x ~ / bin / repo

2. Why in the cygwin new file with vim, but the default is read-only file?
I tried vim new file permissions are -rw-r - r-, not a full read-only
You then check the next, is not vim file does not exist, will not be an existing read-only file vim?
For those log files, they can be sygwin modify back, then you change the natural invalid

Reply:
Download the new repo
kernel.org source code can not access the result can not be downloaded android, which is another source of repo git android file server. It follows $ curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" & gt; ~ / bin // Get repo $ chmod a + x repo $ PATH = ~ / bin : $ PATH is to get the source of the following: $ repo init -u git: //git.omapzoom.org/platform/omapmanifest.git -b 27.x -m RLS27.12.1-P2_Gingerbread.xml $ repo sync ...

No comments:

Post a Comment