Bash 在cygwin上安装gcutil时出错
下面的gcutil教程是下载说明的一个步骤: 但是,当我尝试这个URL时:“$curl | bash” 我收到这个错误:Bash 在cygwin上安装gcutil时出错,bash,curl,cygwin,gcutil,Bash,Curl,Cygwin,Gcutil,下面的gcutil教程是下载说明的一个步骤: 但是,当我尝试这个URL时:“$curl | bash” 我收到这个错误: "$ curl https://dl.google.com/dl/cloudsdk/release/insall_google_cloud_sdk.bash | bash % Total % Received % Xferd Average Speed Time Time Time Current
"$ curl https://dl.google.com/dl/cloudsdk/release/insall_google_cloud_sdk.bash |
bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 869 100 869 0 0 562 0 0:00:01 0:00:01 --:--:-- 679
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: `<!DOCTYPE html>'"
$ curl http://dl.google.com/dl/cloudsdk/release/insall_google_cloud_sdk.bash |
bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:03:50 --:--:-- 0cu
rl: (7) couldn't connect to host
是否有我遗漏的步骤?我想您可能会添加一个额外的字符,还有一个换行符。命令是:
curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash
不需要使用
$
符号,它只是Cygwin bash shell的一个指示符。该命令字符串中应该没有换行符(在|
之后没有换行符) 您是否注意到install
中缺少t
(您将其拼写为insall
,这会导致404)?