我在命令行遇到问题:"gcloud init";在本地机器上成功安装了谷歌云SDK之后。错误显示如下:
云初始化
欢迎!此命令将带您完成gcloud的配置。
您当前的配置已设置为:[默认]
您可以使用以下标志跳过下次诊断:gcloud init—跳过诊断
网络诊断检测并修复本地网络连接问题。正在检查网络连接。。。完成。
可达性检查已通过。
网络诊断已通过(通过了1/1次检查(。
您必须登录才能继续。是否要登录(Y/n(?Y
错误:gcloud崩溃(NotADirectoryError(:[Erno 20]不是目录:"xdg settings">
如果您想报告此问题,请运行以下命令:
gcloud反馈
要检查gcloud是否存在常见问题,请运行以下命令:
gcloud-info—运行诊断程序";
我试图通过使用此链接进行修复,但它在我的环境中不起作用。请让我知道,如果你有任何想法,希望我提供任何东西,请随时问我。
谨致问候,PNV
我通过以下步骤解决了这个问题:
brew install libxslt xmlto
export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"
git clone git://anongit.freedesktop.org/xdg/xdg-utils
cd xdg-utils
./configure --prefix=/usr/local
make
make install
注意,我还必须使用brew install lynx
安装lynx,因为我遇到了这个问题:
Note: Writing xdg-settings.1
/usr/local/bin/xmlto txt desc/xdg-desktop-menu.xml
No way to convert HTML to text found.
Try either installing text web browser(lynx/w3m/links) or use option --with-fop
make[1]: *** [xdg-desktop-menu.txt] Error 1
make: *** [scripts] Error 2