我无法在 Ubuntu 上初始化 Google Cloud SDK [英] I cant init Google Cloud SDK on Ubuntu
问题描述
我在 Ubuntu 上下载了适用于 Python 的 Google Cloud SDK.(https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin)
I downloaded Google Cloud SDK for python on my Ubuntu. (https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin)
然后我按照页面中的步骤操作,但是当我运行时
Then I followed the steps from the page but when I run
gcloud init
我明白了
无法在/home/ariel/.config/gcloud/logs 中设置日志文件,(IOError:[错误 13] 权限被拒绝:'/home/ariel/.config/gcloud/logs/2016.05.25/11.54.37.438036.log')欢迎!此命令将带您完成配置gcloud.
Could not setup log file in /home/ariel/.config/gcloud/logs, (IOError: [Errno 13] Permission denied: '/home/ariel/.config/gcloud/logs/2016.05.25/11.54.37.438036.log') Welcome! This command will take you through the configuration of gcloud.
错误:(gcloud.init) 未能创建默认配置.确保您在以下方面拥有正确的权限:[/home/ariel/.config/gcloud/configurations].无法创建目录 [/home/ariel/.config/gcloud/configurations]:权限拒绝.
ERROR: (gcloud.init) Failed to create the default configuration. Ensure your have the correct permissions on: [/home/ariel/.config/gcloud/configurations]. Could not create directory [/home/ariel/.config/gcloud/configurations]: Permission denied.
请验证您是否有权写入父级目录.
Please verify that you have permissions to write to the parent directory.
PS:然后我找到了另一个文件 https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python(似乎是一样的,但它是 40.2MB,我使用的是 7.5MB)
PS: Then I found this other file https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python (seems to be the same but it is 40.2MB and the one I used was 7.5MB)
谢谢!爱丽儿
推荐答案
用户 gcbirzan 在 irc 频道(我推荐)回答了我的问题,它是 #appengine 在 irc.freenode.net
The user gcbirzan responded my questions at an irc channel (which I recommend), it is #appengine on irc.freenode.net
我必须运行这个:
sudo chown ariel -R /home/ariel/.config/gcloud
我也把聊天记录留在这里:
I also leave the transcription of the chat here:
[14:12] 问:你好
[14:13] 问:我只是开始使用应用引擎,例如,任何人都可以告诉我这个文件有什么区别((https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin)) 和这个 ((https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python))(似乎是一样的,但它是 40.2MB,我使用的是 7.5MB)
[14:13] Q: I am just beggining with app engine, and for instance, anyone could tell me what is the difference between this file((https://cloud.google.com/sdk/docs/quickstart-linux#before-you-begin)) and this one ((https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python)) (seems to be the same but it is 40.2MB and the one I used was 7.5MB)
[14:15] 答:Google 云 sdk 是 gcloud 和朋友,您需要它来使用 flex 和其他 Google 云平台的东西.
[14:15] A: Google cloud sdk is gcloud and friends, you need it for flex and other google cloud platform stuff.
[14:15] 答:appengine sdk 是一个带有本地开发服务器和所有其他东西的软件,可能正是您想要的
[14:15] A: The appengine sdk is the one that comes with a local dev server and all the other stuff, and is probably what you want
[14:15] 答:好吧.去疯狂,得到两个
[14:15] A: well. go wild, get both
[14:16] 问:好的
[14:16] 问:谢谢
[14:16] 问:你能帮我解决这个问题吗?我无法在 Ubuntu 上初始化 Google Cloud SDK
[14:16] Q: and could you please help me with this ? I cant init Google Cloud SDK on Ubuntu
[14:17] A: sudo chown ariel -R/home/ariel/.config/gcloud
[14:17] A: sudo chown ariel -R /home/ariel/.config/gcloud
[14:19] 问:它有效!
[14:19] Q: it works !
这篇关于我无法在 Ubuntu 上初始化 Google Cloud SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!