在 macOS 上安装 azure-cli 导致 "Failed writing body" 和 "image not found" 错误
Installing azure-cli on macOS results in "Failed writing body" and "image not found" errors
我想在 MacOS (10.12.5) 计算机上安装 azure-cli。
Python 2.7.13 已安装(前段时间使用 homebrew 安装,但今天更新)。 Xcode 命令行工具已安装。
我正在按照此处的说明进行操作:https://docs.microsoft.com/en-us/cli/azure/install-azure-cli
真的没什么。只需 运行 这个命令:
curl -L https://aka.ms/InstallAzureCli | bash
但是当我 运行 该命令时,我得到了这个结果:
j-mbp:~ jonathan$ curl -L https://aka.ms/InstallAzureCli | bash
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Referenced from: /usr/local/bin/bash
Reason: image not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 167 100 167 0 0 47 0 0:00:03 0:00:03 --:--:-- 77
100 1367 100 1367 0 0 219 0 0:00:06 0:00:06 --:--:-- 653
(23) Failed writing body
Abort trap: 6
我不知道这个错误是什么意思,说明中也没有与可能的问题相关的信息。
你能告诉我如何进行吗?
谢谢。
根据这个错误代码,请升级你的bash用这个命令brew upgrade bash
然后重新运行这个脚本curl -L https://aka.ms/InstallAzureCli | bash
.
我想在 MacOS (10.12.5) 计算机上安装 azure-cli。 Python 2.7.13 已安装(前段时间使用 homebrew 安装,但今天更新)。 Xcode 命令行工具已安装。
我正在按照此处的说明进行操作:https://docs.microsoft.com/en-us/cli/azure/install-azure-cli
真的没什么。只需 运行 这个命令:
curl -L https://aka.ms/InstallAzureCli | bash
但是当我 运行 该命令时,我得到了这个结果:
j-mbp:~ jonathan$ curl -L https://aka.ms/InstallAzureCli | bash
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Referenced from: /usr/local/bin/bash
Reason: image not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 167 100 167 0 0 47 0 0:00:03 0:00:03 --:--:-- 77
100 1367 100 1367 0 0 219 0 0:00:06 0:00:06 --:--:-- 653
(23) Failed writing body
Abort trap: 6
我不知道这个错误是什么意思,说明中也没有与可能的问题相关的信息。
你能告诉我如何进行吗?
谢谢。
根据这个错误代码,请升级你的bash用这个命令brew upgrade bash
然后重新运行这个脚本curl -L https://aka.ms/InstallAzureCli | bash
.