我在 Windows 中透過 Cygwin 終端下載 android 時遇到問題。我使用這個指南來下載它:
- 1) Download cygwin from http://cygwin.com/install.html.
- 2) Install cygwin with defaults.In cygwin Select defualt page search
for curl and python and check them to be installed.
- 3) Then start cygwin.exe
go to your preferred directory (mine is D:/Android/sources/4.0/try2 )
cd d:
cd Android/sources/4.0/try2
- 4) Run the below instructions one by one
- i) mkdir bin
- ii) PATH=/cygdrive/d/Android/sources/4.0/try2/bin:$PATH
- iii) curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo >
/cygdrive/e/android-s/bin/repo
- iv) mkdir source
- v) cd source
- vi) repo init -u https://android.googlesource.com/platform/manifest
-b android-4.0.1_r1
give credentials
- vii) repo sync
因此,在 4-ii 步驟之前它工作正常,但是當我嘗試使用 4-iii 步驟時,它給了我這個錯誤:
-bash: curl: command not found
問題是什麼?怎麼解決呢?
答案1
您必須再次執行安裝來安裝 cygwin 的curl 軟體包並選擇所需的軟體包。