dtr32221 2017-03-22 17:24
浏览 69
已采纳

为什么Gcloud不安装“ app-engine-go”组件?

I'm setting up Golang for App Engine on my Macbook Pro osX 0.11.6: go version go1.8 darwin/amd64

I updated Cloud SDK to 148.0.0 with

sudo /usr/local/google-cloud-sdk/bin/gcloud components update

╔════════════════════════════════════════════════════════════╗  
╠═ Creating update staging area                             ═╣  
╠════════════════════════════════════════════════════════════╣  
╠═ Uninstalling: BigQuery Command Line Tool                 ═╣  
╠════════════════════════════════════════════════════════════╣  
╠═ Uninstalling: Cloud SDK Core Libraries                   ═╣  
╠════════════════════════════════════════════════════════════╣  
╠═ Uninstalling: Cloud Storage Command Line Tool            ═╣  
╠════════════════════════════════════════════════════════════╣     
╠═ Uninstalling: gcloud cli dependencies                    ═╣  
╠════════════════════════════════════════════════════════════╣  
╠═ Installing: BigQuery Command Line Tool                   ═╣  
╠════════════════════════════════════════════════════════════╣  
╠═ Installing: Cloud SDK Core Libraries                     ═╣  
╠════════════════════════════════════════════════════════════╣  
╠═ Installing: Cloud Storage Command Line Tool              ═╣  
╠════════════════════════════════════════════════════════════╣  
╠═ Installing: gcloud cli dependencies                      ═╣  
╠════════════════════════════════════════════════════════════╣  
╠═ Creating backup and activating new installation          ═╣   
╚════════════════════════════════════════════════════════════╝  

Performing post processing steps...done.

$ dev_appserver.py app.yaml

This action requires the installation of components: [app-engine-go]  

Traceback (most recent call last):  
  File "/usr/local/google-cloud-sdk/bin/dev_appserver.py", line 44, in <module>  
    main()  
  File "/usr/local/google-cloud-sdk/bin/dev_appserver.py", line 23, in main  
    command=__file__)  
  File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 189, in EnsureInstalledAndRestart  
    return manager._EnsureInstalledAndRestart(components, msg, command)  
  File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 1139, in _EnsureInstalledAndRestart  
    restart_args=restart_args):  
  File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 665, in Install  
    restart_args=restart_args)  
  File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 742, in Update  
    config.EnsureSDKWriteAccess(self.__sdk_root)  
  File "/usr/local/google-cloud-sdk/lib/googlecloudsdk/core/config.py", line 195, in EnsureSDKWriteAccess  
    raise exceptions.RequiresAdminRightsError(sdk_root)  
googlecloudsdk.core.exceptions.RequiresAdminRightsError: You cannot perform this action because you do not have permission to modify the Google Cloud SDK installation directory [/usr/local/google-cloud-sdk].  

Re-run the command with sudo: sudo /usr/local/google-cloud-sdk/bin/gcloud ...  

What is the command I'm being told to run "sudo /usr/local/google-cloud-sdk/bin/gcloud ..." ?

Why isn't the "app-engine-go" component being installed?

  • 写回答

1条回答 默认 最新

  • duanjingsen7904 2017-03-22 20:22
    关注

    You can see list of available components by running

    gcloud components list
    

    Many components are not installed by default, there are a few of them and some are rather large. If component is not installed you can install it via

    gcloud components install app-engine-go
    

    Since you have installed gcloud machine wide you would need to run last command with sudo.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。