1
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 3 years have passed since last update.

pyenv install xxx が失敗する(Killed: 9)

Posted at

環境

  • macOS 11.6, 12.3(arm64)
  • homebrew
  • pyenv 2.2.5
  • gcc Apple clang version 13.1.6 (clang-1316.0.21.2)

homebrewのバージョンはメモ取ってませんでした。ごめんなさい。

事象

pyenv install 3.10.3としてインストールを試みたところ、ビルドの途中で失敗した。
/bin/sh: line 1: 24309 Killed: 9 ...(略)... make: *** [sharedmods] Error 137
ビルドの途中で強制終了されているみたい。

解決方法

homebrewをインストールし直す。
pyenvリポジトリにissueが立っていて、このissueに「homebrewを入れ直したら直った」とのコメントがあった。
試したところ、なぜか分からないが本当に直った。
homebrewのインストール/アンインストールスクリプトはこちらからどうぞ。再インストール後のhomebrewのバージョンは3.4.3でした。

終わりに

原因がわからないのが悔しいところ。再インストール前のhomebrewのバージョンを控えておけばよかったです。
なお、アンチウイルスを追加でインストールしている方は以下の記事も参考になるかと思います。

Pythonのビルドに失敗する原因がアンチウィルスソフトだった件

1
0
1

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
1
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?