0
0

More than 1 year has passed since last update.

AWS SAM CLIをbrew installしたときに発生したエラーを解決する

Posted at

前提

以下のURLの手順に沿ってAWS SAM CLIをインストールしたときにエラーでハマりました。

環境

  • macOS: 12.6

エラー内容

実行したコマンドはこちらです。

brew install aws-sam-cli

そしてこれがエラー内容です。

Error: python@3.8: the bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install

You can try to install from source with:
  brew install --build-from-source python@3.8
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

xcode-select --installを使用すると膨大な時間がかかると思ったので、python3.8をインストールすることにしました。
結果的に成功しました。

(base) XXX $ brew install aws-sam-cli
==> Downloading https://github.com/aws/aws-sam-cli/releases/download/v1.60.0//aws-sam-cli-1.60.0.sie
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/92
######################################################################## 100.0%
==> Installing aws-sam-cli from aws/tap
==> Pouring aws-sam-cli-1.60.0.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/aws-sam-cli/1.60.0: 4,644 files, 112.3MB
==> Running `brew cleanup aws-sam-cli`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
(base) XXX $ sam --version
SAM CLI, version 1.60.0
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0