Homebrewでyoutube-dlをインストールしたときの作業ログ。
いくつかエラーが出たので。
% brew install youtube-dl
...
Error: python@3.9: 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.9
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
ポップアップウインドウであれこれしてインストール。
もう一度試す;
% brew install youtube-dl ... Error: pango is already installed from dersimn/craft! Please `brew uninstall pango` first."
アンインストールする;
brew uninstall pango
youtube-dlのインストール自体はもう済んでいたらしい。
バージョンを確認;
% youtube-dl --version 2021.06.06
公式サイトに書かれているバージョンと一致しているのでOKかと。
以上。