issue
環境
- macOS:
Ventura
- aws CLI:
2.1.28
macOSをVenturaにアップグレード後に、aws CLIでhelp実行の際に下記のようなエラーが出力される。
$ aws s3 help
Could not find executable named "groff"
対処方法
groffは文書整形につかうコマンドであるが、これが無いために出力されているようで、これはgroff
がmandoc
にリプレイスされていたために発生していた。
aws-cli issue#7400をみるかぎり既に、aws-cliのmandoc対応PRがマージされているようなので、次のリリースで解消されているだろうとのこと。
次期バージョンがリリースまでの対処方法としてはissueコメントに書かれているように、次のようにmacdocをgroffにsymlinkする方法が紹介されている。
sudo ln -s /usr/bin/mandoc /usr/local/bin/groff
上記の方法で私の環境でもエラーがなくなり、無事helpが出力できた。
aws s3 help
NAME
s3 -
DESCRIPTION
This section explains prominent concepts and notations in the set of
high-level S3 commands provided.
Path Argument Type
Whenever using a command, at least one path argument must be specified.
There are two types of path arguments: LocalPath and S3Uri.
LocalPath: represents the path of a local file or directory. It can be
written as an absolute path or relative path.
S3Uri: represents the location of a S3 object, prefix, or bucket. This
must be written in the form s3://mybucket/mykey where mybucket is the
specified S3 bucket, mykey is the specified S3 key. The path argument
must begin with s3:// in order to denote that the path argument refers
to a S3 object. Note that prefixes are separated by forward slashes.
For example, if the S3 object myobject had the prefix myprefix, the S3
key would be myprefix/myobject, and if the object was in the bucket
mybucket, the S3Uri would be s3://mybucket/myprefix/myobject.
... snip ...
以上、一時的な対応としてご参考までに