【问题标题】:Error installing gcutil on cygwin在 cygwin 上安装 gcutil 时出错
【发布时间】:2013-12-12 10:00:31
【问题描述】:

按照https://developers.google.com/compute/docs/gcutil/ 的 gcutil 教程,这里是下载说明的一个步骤:

但是当我尝试这个 URL 时:“$ curl https://dl.google.com/dl/cloudsdk/release/insall_google_cloud_sdk.bash | bash”

我收到此错误:

"$ 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>'"

我尝试使用 http 而不是 https 但收到此错误:

$ 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

有没有我遗漏的步骤?

【问题讨论】:

  • 您是否发现install 中缺少t(您已将其拼写为insall,导致404)?

标签: bash curl cygwin gcutil


【解决方案1】:

我想你可能会添加一个额外的字符,还有一个换行符。命令是:

curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash

不需要$ 符号,这只是 Cygwin bash shell 的一个指示符。该命令字符串中根本不应该有换行符(| 之后没有换行符)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-12-02
    • 2019-12-01
    • 2013-10-17
    • 2012-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多