2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

aws CLI help (macOS Ventura) で出力されるエラー対処法 - Could not find executable named "groff"

Last updated at Posted at 2023-01-17

issue

環境

  • macOS: Ventura
  • aws CLI: 2.1.28

macOSをVenturaにアップグレード後に、aws CLIでhelp実行の際に下記のようなエラーが出力される。

$ aws s3 help

Could not find executable named "groff" 

対処方法

groffは文書整形につかうコマンドであるが、これが無いために出力されているようで、これはgroffmandocにリプレイスされていたために発生していた。

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 ...

以上、一時的な対応としてご参考までに

2
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?